Skip to content

Commit

Permalink
Fix bug for ActivityManager.exit
Browse files Browse the repository at this point in the history
  • Loading branch information
yjfnypeu committed Dec 1, 2018
1 parent 36c6fc9 commit 3d19e51
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ void registerSelf(Context context) {

public void exit() {
Activity activity;
while ((activity = stack.pop()) != null) {
while (!stack.isEmpty()) {
activity = stack.pop();
if (!activity.isFinishing()) {
activity.finish();
}
Expand Down

0 comments on commit 3d19e51

Please sign in to comment.