Merge "Fixed NPE when pause is complete on a dead app." into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-09-14 13:49:57 +00:00
committed by Android (Google) Code Review

View File

@@ -1308,7 +1308,9 @@ final class ActivityStack {
// It is possible the activity was freezing the screen before it was paused.
// In that case go ahead and remove the freeze this activity has on the screen
// since it is no longer visible.
prev.stopFreezingScreenLocked(true /*force*/);
if (prev != null) {
prev.stopFreezingScreenLocked(true /*force*/);
}
mPausingActivity = null;
}