Skip to content

Commit

Permalink
Dont show reboot alert if activity is finished/finishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsPriyesh committed Oct 30, 2015
1 parent 4781a70 commit 8475448
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ public void onBackupDeleted() {
}

public void onRestoreComplete() {
AlertUtils.showRebootAlert(getActivity());
if (getActivity() == null || getActivity().isFinishing()) {
AlertUtils.showRebootAlert(getActivity());
}
}

}

0 comments on commit 8475448

Please sign in to comment.