Search in sources :

Example 1 with PasswordUIView

use of org.chromium.chrome.browser.PasswordUIView in project AndroidChromium by JackyAndroid.

the class PasswordEntryEditor method removeItem.

// Delete was clicked.
private void removeItem() {
    final PasswordUIView passwordUIView = new PasswordUIView();
    final PasswordListObserver passwordDeleter = new PasswordListObserver() {

        @Override
        public void passwordListAvailable(int count) {
            if (!mException) {
                passwordUIView.removeSavedPasswordEntry(mID);
                passwordUIView.destroy();
                getActivity().finish();
            }
        }

        @Override
        public void passwordExceptionListAvailable(int count) {
            if (mException) {
                passwordUIView.removeSavedPasswordException(mID);
                passwordUIView.destroy();
                getActivity().finish();
            }
        }
    };
    passwordUIView.addObserver(passwordDeleter);
    passwordUIView.updatePasswordLists();
}
Also used : PasswordListObserver(org.chromium.chrome.browser.PasswordUIView.PasswordListObserver) PasswordUIView(org.chromium.chrome.browser.PasswordUIView)

Aggregations

PasswordUIView (org.chromium.chrome.browser.PasswordUIView)1 PasswordListObserver (org.chromium.chrome.browser.PasswordUIView.PasswordListObserver)1