Search in sources :

Example 1 with SetPassword

use of com.keepassdroid.database.edit.SetPassword in project KeePassDX by Kunzisoft.

the class AssignPasswordHelper method assignPasswordInDatabase.

public void assignPasswordInDatabase(FileOnFinish fileOnFinish) {
    SetPassword sp = new SetPassword(context, App.getDB(), masterPassword, keyfile, new AfterSave(fileOnFinish, new Handler()));
    final ProgressTask pt = new ProgressTask(context, sp, R.string.saving_database);
    boolean valid = sp.validatePassword(context, new DialogInterface.OnClickListener() {

        @Override
        public void onClick(DialogInterface dialog, int which) {
            pt.run();
        }
    });
    if (valid) {
        pt.run();
    }
}
Also used : ProgressTask(com.keepassdroid.tasks.ProgressTask) DialogInterface(android.content.DialogInterface) Handler(android.os.Handler) SetPassword(com.keepassdroid.database.edit.SetPassword)

Aggregations

DialogInterface (android.content.DialogInterface)1 Handler (android.os.Handler)1 SetPassword (com.keepassdroid.database.edit.SetPassword)1 ProgressTask (com.keepassdroid.tasks.ProgressTask)1