Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
QuizActivity. Fixed multiple back-presses crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
shchurov authored and keyboardsurfer committed Jul 2, 2015
1 parent 2c8e145 commit 5c14309
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ public void onBackPressed() {
new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
if (isFinishing() || isDestroyed()) {
return;
}
QuizActivity.super.onBackPressed();
super.onAnimationEnd(animation);
}
Expand Down

0 comments on commit 5c14309

Please sign in to comment.