Revert "Finish already paused activity if it should be finished after pausing"

This reverts commit bef8a3e393.

Changed caused some existing apps to crash. Reverting to unblock the
build while I investigate.

Bug: 22170595
Bug: 22397812
This commit is contained in:
Wale Ogunwale
2015-07-10 15:25:38 -07:00
parent c1541571ff
commit 12bb956828

View File

@@ -2963,7 +2963,6 @@ final class ActivityStack {
r.state = ActivityState.FINISHING;
if (mode == FINISH_IMMEDIATELY
|| (mode == FINISH_AFTER_PAUSE && prevState == ActivityState.PAUSED)
|| prevState == ActivityState.STOPPED
|| prevState == ActivityState.INITIALIZING) {
// If this activity is already stopped, we can just finish