Loading core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -1487,6 +1487,9 @@ <!-- default window inset isRound property --> <bool name="config_windowIsRound">false</bool> <!-- default device has recents property --> <bool name="config_hasRecents">true</bool> <!-- Defines the default set of global actions. Actions may still be disabled or hidden based on the current state of the device. Each item must be one of the following strings: Loading core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -291,6 +291,7 @@ <java-symbol type="bool" name="config_forceDefaultOrientation" /> <java-symbol type="bool" name="config_wifi_batched_scan_supported" /> <java-symbol type="bool" name="config_windowIsRound" /> <java-symbol type="bool" name="config_hasRecents" /> <java-symbol type="integer" name="config_cursorWindowSize" /> <java-symbol type="integer" name="config_extraFreeKbytesAdjust" /> Loading services/core/java/com/android/server/am/ActivityManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -1074,6 +1074,9 @@ public final class ActivityManagerService extends ActivityManagerNative */ private boolean mUserIsMonkey; /** Flag whether the device has a recents UI */ final boolean mHasRecents; final ServiceThread mHandlerThread; final MainHandler mHandler; Loading Loading @@ -1941,6 +1944,9 @@ public final class ActivityManagerService extends ActivityManagerNative mConfigurationSeq = mConfiguration.seq = 1; mProcessCpuTracker.init(); mHasRecents = mContext.getResources().getBoolean( com.android.internal.R.bool.config_hasRecents); mCompatModePackages = new CompatModePackages(this, systemDir, mHandler); mIntentFirewall = new IntentFirewall(new IntentFirewallInterface(), mHandler); mStackSupervisor = new ActivityStackSupervisor(this); Loading services/core/java/com/android/server/am/ActivityStack.java +1 −1 Original line number Diff line number Diff line Loading @@ -754,7 +754,7 @@ final class ActivityStack { prev.task.touchActiveTime(); clearLaunchTime(prev); final ActivityRecord next = mStackSupervisor.topRunningActivityLocked(); if (next == null || next.task != prev.task) { if (mService.mHasRecents && (next == null || next.task != prev.task)) { prev.updateThumbnail(screenshotActivities(prev), null); } stopFullyDrawnTraceIfNeeded(); Loading Loading
core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -1487,6 +1487,9 @@ <!-- default window inset isRound property --> <bool name="config_windowIsRound">false</bool> <!-- default device has recents property --> <bool name="config_hasRecents">true</bool> <!-- Defines the default set of global actions. Actions may still be disabled or hidden based on the current state of the device. Each item must be one of the following strings: Loading
core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -291,6 +291,7 @@ <java-symbol type="bool" name="config_forceDefaultOrientation" /> <java-symbol type="bool" name="config_wifi_batched_scan_supported" /> <java-symbol type="bool" name="config_windowIsRound" /> <java-symbol type="bool" name="config_hasRecents" /> <java-symbol type="integer" name="config_cursorWindowSize" /> <java-symbol type="integer" name="config_extraFreeKbytesAdjust" /> Loading
services/core/java/com/android/server/am/ActivityManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -1074,6 +1074,9 @@ public final class ActivityManagerService extends ActivityManagerNative */ private boolean mUserIsMonkey; /** Flag whether the device has a recents UI */ final boolean mHasRecents; final ServiceThread mHandlerThread; final MainHandler mHandler; Loading Loading @@ -1941,6 +1944,9 @@ public final class ActivityManagerService extends ActivityManagerNative mConfigurationSeq = mConfiguration.seq = 1; mProcessCpuTracker.init(); mHasRecents = mContext.getResources().getBoolean( com.android.internal.R.bool.config_hasRecents); mCompatModePackages = new CompatModePackages(this, systemDir, mHandler); mIntentFirewall = new IntentFirewall(new IntentFirewallInterface(), mHandler); mStackSupervisor = new ActivityStackSupervisor(this); Loading
services/core/java/com/android/server/am/ActivityStack.java +1 −1 Original line number Diff line number Diff line Loading @@ -754,7 +754,7 @@ final class ActivityStack { prev.task.touchActiveTime(); clearLaunchTime(prev); final ActivityRecord next = mStackSupervisor.topRunningActivityLocked(); if (next == null || next.task != prev.task) { if (mService.mHasRecents && (next == null || next.task != prev.task)) { prev.updateThumbnail(screenshotActivities(prev), null); } stopFullyDrawnTraceIfNeeded(); Loading