mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 13:27:46 +00:00
GitOperation: Dismiss activity on cancel (#468)
Fixes the issue where starting a repository sync and then hitting cancel in the password dialog leaves you with an empty activity which needs to be dismissed to get back to where you were. Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
249248e168
commit
f34ce30cc7
@ -203,9 +203,8 @@ public abstract class GitOperation {
|
||||
// authenticate using the user/pwd and then execute the command
|
||||
setAuthentication(username, password.getText().toString()).execute();
|
||||
|
||||
}).setNegativeButton(callingActivity.getResources().getString(R.string.dialog_cancel), (dialog, whichButton) -> {
|
||||
// Do nothing.
|
||||
}).show();
|
||||
})
|
||||
.setNegativeButton(callingActivity.getResources().getString(R.string.dialog_cancel), (dialog, whichButton) -> callingActivity.finish()).show();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user