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
1 changed files with 2 additions and 3 deletions
|
@ -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…
Reference in a new issue