mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 13:57:47 +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:
@@ -203,9 +203,8 @@ public abstract class GitOperation {
|
|||||||
// authenticate using the user/pwd and then execute the command
|
// authenticate using the user/pwd and then execute the command
|
||||||
setAuthentication(username, password.getText().toString()).execute();
|
setAuthentication(username, password.getText().toString()).execute();
|
||||||
|
|
||||||
}).setNegativeButton(callingActivity.getResources().getString(R.string.dialog_cancel), (dialog, whichButton) -> {
|
})
|
||||||
// Do nothing.
|
.setNegativeButton(callingActivity.getResources().getString(R.string.dialog_cancel), (dialog, whichButton) -> callingActivity.finish()).show();
|
||||||
}).show();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user