mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-16 23:12:51 +00:00
Set RESULT_CANCELED before calling finishAffinity()
This fixes a crash in AuthActivity: Exception java.lang.IllegalStateException: Can not be called to deliver a result
This commit is contained in:
parent
9f55d4f659
commit
55dc4b22d5
1 changed files with 1 additions and 0 deletions
|
@ -310,6 +310,7 @@ public class AuthActivity extends AegisActivity {
|
|||
public void handleOnBackPressed() {
|
||||
// This breaks predictive back gestures, but it doesn't make sense
|
||||
// to go back to MainActivity when cancelling auth
|
||||
setResult(RESULT_CANCELED);
|
||||
finishAffinity();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue