am 4cabbef8: Merge "Make sure to stop noHistory="true" activities properly" into jb-dev

* commit '4cabbef8266c909997cf608d008920f5a2f49937':
  Make sure to stop noHistory="true" activities properly
This commit is contained in:
Christopher Tate
2012-06-12 13:41:31 -07:00
committed by Android Git Automerger

View File

@@ -3282,7 +3282,9 @@ final class ActivityStack {
requestFinishActivityLocked(r.appToken, Activity.RESULT_CANCELED, null,
"no-history");
}
} else if (r.app != null && r.app.thread != null) {
}
if (r.app != null && r.app.thread != null) {
if (mMainStack) {
if (mService.mFocusedActivity == r) {
mService.setFocusedActivityLocked(topRunningActivityLocked(null));