diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2014-05-28 01:50:08 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-28 01:50:08 +0000 |
commit | bbd8e6ffc600e078984cb68acf51c660c5c9fc81 (patch) | |
tree | 196a27585bc39b7db199d2f3d71aa0368befd89f /services | |
parent | e2f81830779619d80f75e5df002de2189b53cfff (diff) | |
parent | c82e7d30e34ff7cc273edf1ea8ddd11b713fec5b (diff) | |
download | frameworks_base-bbd8e6ffc600e078984cb68acf51c660c5c9fc81.zip frameworks_base-bbd8e6ffc600e078984cb68acf51c660c5c9fc81.tar.gz frameworks_base-bbd8e6ffc600e078984cb68acf51c660c5c9fc81.tar.bz2 |
Merge "Revert "Only allow 1 Stack on Leanback-only devices"" into lmp-preview-dev
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/am/ActivityStackSupervisor.java | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStackSupervisor.java b/services/core/java/com/android/server/am/ActivityStackSupervisor.java index d52a396..ae7fab3 100644 --- a/services/core/java/com/android/server/am/ActivityStackSupervisor.java +++ b/services/core/java/com/android/server/am/ActivityStackSupervisor.java @@ -207,8 +207,6 @@ public final class ActivityStackSupervisor implements DisplayListener { /** Set when we have taken too long waiting to go to sleep. */ boolean mSleepTimeout = false; - private final boolean mLeanbackOnlyDevice = isLeanbackOnlyDevice(); - /** * We don't want to allow the device to go to sleep while in the process * of launching an activity. This is primarily to allow alarm intent @@ -1389,10 +1387,7 @@ public final class ActivityStackSupervisor implements DisplayListener { ActivityStack adjustStackFocus(ActivityRecord r, boolean newTask) { final TaskRecord task = r.task; - - // On leanback only devices we should keep all activities in the same stack. - if (!mLeanbackOnlyDevice && - (r.isApplicationActivity() || (task != null && task.isApplicationTask()))) { + if (r.isApplicationActivity() || (task != null && task.isApplicationTask())) { if (task != null) { final ActivityStack taskStack = task.stack; if (taskStack.isOnHomeDisplay()) { @@ -3445,16 +3440,4 @@ public final class ActivityStackSupervisor implements DisplayListener { return "VirtualActivityDisplay={" + mDisplayId + "}"; } } - - private boolean isLeanbackOnlyDevice() { - boolean onLeanbackOnly = false; - try { - onLeanbackOnly = AppGlobals.getPackageManager().hasSystemFeature( - PackageManager.FEATURE_LEANBACK_ONLY); - } catch (RemoteException e) { - // noop - } - - return onLeanbackOnly; - } } |