Add an option to set a separate password for backups and exports

This commit is contained in:
Alexander Bakker 2022-06-05 18:26:46 +02:00
parent d40ebf0f67
commit a492bcbde3
14 changed files with 243 additions and 33 deletions

View file

@ -114,7 +114,7 @@ public class Dialogs {
.create());
}
public static void showSetPasswordDialog(ComponentActivity activity, Dialogs.SlotListener listener) {
public static void showSetPasswordDialog(ComponentActivity activity, PasswordSlotListener listener) {
Zxcvbn zxcvbn = new Zxcvbn();
View view = activity.getLayoutInflater().inflate(R.layout.dialog_password, null);
EditText textPassword = view.findViewById(R.id.text_password);
@ -460,8 +460,8 @@ public class Dialogs {
void onTextInputResult(char[] text);
}
public interface SlotListener {
void onSlotResult(Slot slot, Cipher cipher);
public interface PasswordSlotListener {
void onSlotResult(PasswordSlot slot, Cipher cipher);
void onException(Exception e);
}