summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2015-04-02 10:34:28 -0700
committerWale Ogunwale <ogunwale@google.com>2015-04-02 10:34:28 -0700
commitbcfe87f3e05ac65d7ecb7156cd0de580586df5e9 (patch)
tree6a56a54e48ba4bc4d4330a9778b28aae5f6c71fe /services
parentad0eacb917e88e99cf0b4af5a178d15686746f49 (diff)
parent65073b910c184611f793646d81e6a1e234a45f6a (diff)
downloadframeworks_base-bcfe87f3e05ac65d7ecb7156cd0de580586df5e9.zip
frameworks_base-bcfe87f3e05ac65d7ecb7156cd0de580586df5e9.tar.gz
frameworks_base-bcfe87f3e05ac65d7ecb7156cd0de580586df5e9.tar.bz2
resolved conflicts for merge of 65073b91 to master
Change-Id: I65a9d95caa98ec33e41480546b4447ec787c6840
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/am/ActivityManagerService.java18
-rw-r--r--services/core/java/com/android/server/am/ActivityStack.java6
2 files changed, 10 insertions, 14 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java
index 5858477..b0b410b 100644
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -4194,17 +4194,13 @@ public final class ActivityManagerService extends ActivityManagerNative
finishInstrumentationLocked(app, Activity.RESULT_CANCELED, info);
}
- if (!restarting) {
- if (!mStackSupervisor.resumeTopActivitiesLocked()) {
- // If there was nothing to resume, and we are not already
- // restarting this process, but there is a visible activity that
- // is hosted by the process... then make sure all visible
- // activities are running, taking care of restarting this
- // process.
- if (hasVisibleActivities) {
- mStackSupervisor.ensureActivitiesVisibleLocked(null, 0);
- }
- }
+ if (!restarting && hasVisibleActivities && !mStackSupervisor.resumeTopActivitiesLocked()) {
+ // If there was nothing to resume, and we are not already
+ // restarting this process, but there is a visible activity that
+ // is hosted by the process... then make sure all visible
+ // activities are running, taking care of restarting this
+ // process.
+ mStackSupervisor.ensureActivitiesVisibleLocked(null, 0);
}
}
diff --git a/services/core/java/com/android/server/am/ActivityStack.java b/services/core/java/com/android/server/am/ActivityStack.java
index a8deea3..8299be8 100644
--- a/services/core/java/com/android/server/am/ActivityStack.java
+++ b/services/core/java/com/android/server/am/ActivityStack.java
@@ -3496,6 +3496,9 @@ final class ActivityStack {
if (DEBUG_CLEANUP) Slog.v(TAG_CLEANUP,
"Record #" + i + " " + r + ": app=" + r.app);
if (r.app == app) {
+ if (r.visible) {
+ hasVisibleActivities = true;
+ }
final boolean remove;
if ((!r.haveState && !r.stateNotNeeded) || r.finishing) {
// Don't currently have state for the activity, or
@@ -3535,9 +3538,6 @@ final class ActivityStack {
// it can be restarted later when needed.
if (DEBUG_ALL) Slog.v(
TAG, "Keeping entry, setting app to null");
- if (r.visible) {
- hasVisibleActivities = true;
- }
if (DEBUG_APP) Slog.v(TAG, "Clearing app during removeHistory for activity "
+ r);
r.app = null;