OSDN Git Service

Finish already paused activity if it should be finished after pausing
authorWale Ogunwale <ogunwale@google.com>
Sun, 12 Jul 2015 22:14:01 +0000 (15:14 -0700)
committerWale Ogunwale <ogunwale@google.com>
Sun, 12 Jul 2015 22:14:01 +0000 (15:14 -0700)
commit3f529ee7fa913531331310e00c4cc4dc471f5d1d
treeb3abc68a1b9fe711642a2ca035e9363abb1a3282
parent12bb956828d2df983baa0dad2523ab19b1a4577b
Finish already paused activity if it should be finished after pausing

If the app requests its activity to be finished allow it to be finished
immediately if the activity is already paused.

Also, don't schedule stop for an activity that was already finished in
ActivityStack.stopActivityLocked().

Bug: 22170595
Bug: 22397812
Change-Id: If349f7d3070a1fd2c0688fda7381b42f625ed9e4
services/core/java/com/android/server/am/ActivityStack.java