Set title for the decryption error dialog

This commit is contained in:
Alexander Bakker 2017-12-03 22:06:03 +01:00
parent da4956cb3c
commit f4b9d4b45c

View file

@ -88,6 +88,7 @@ public class AuthActivity extends AppCompatActivity implements FingerprintUiHelp
private void showError() { private void showError() {
AlertDialog.Builder builder = new AlertDialog.Builder(this); AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Decryption error");
builder.setMessage("Master key integrity check failed for every slot. Make sure you didn't mistype your password."); builder.setMessage("Master key integrity check failed for every slot. Make sure you didn't mistype your password.");
builder.setCancelable(false); builder.setCancelable(false);
builder.setPositiveButton("OK", builder.setPositiveButton("OK",
@ -100,7 +101,7 @@ public class AuthActivity extends AppCompatActivity implements FingerprintUiHelp
} }
private <T extends Slot> void trySlots(Class<T> type, Object obj) { private <T extends Slot> void trySlots(Class<T> type, Object obj) {
new SlotCollectionTask<T>(type, this, this).execute(new SlotCollectionTask.Params(){{ new SlotCollectionTask<>(type, this, this).execute(new SlotCollectionTask.Params(){{
Slots = _slots; Slots = _slots;
Obj = obj; Obj = obj;
}}); }});