Loading services/core/java/com/android/server/am/ActivityStack.java +2 −8 Original line number Diff line number Diff line Loading @@ -901,14 +901,8 @@ final class ActivityStack { prev.task.touchActiveTime(); clearLaunchTime(prev); final ActivityRecord next = mStackSupervisor.topRunningActivityLocked(); // In freeform mode we only update the thumbnail when there is no thumbnail yet since every // focus change will request a thumbnail to be taken. // Note furthermore that since windows can change their content in freeform mode all the // time a thumbnail is possibly constantly outdated. if (mService.mHasRecents && (next == null || next.noDisplay || next.task != prev.task || uiSleeping) && (!prev.task.hasThumbnail() || prev.task.stack.mStackId != FREEFORM_WORKSPACE_STACK_ID)) { if (mService.mHasRecents && (next == null || next.noDisplay || next.task != prev.task || uiSleeping)) { prev.updateThumbnailLocked(screenshotActivities(prev), null); } stopFullyDrawnTraceIfNeeded(); Loading services/core/java/com/android/server/am/TaskRecord.java +0 −8 Original line number Diff line number Diff line Loading @@ -484,14 +484,6 @@ final class TaskRecord { setNextAffiliate(null); } /** * Returns true when we have a thumbnail. * @return Returns true if there is a thumbnail. */ boolean hasThumbnail() { return mLastThumbnail != null; } /** * Sets the last thumbnail. * @return whether the thumbnail was set Loading Loading
services/core/java/com/android/server/am/ActivityStack.java +2 −8 Original line number Diff line number Diff line Loading @@ -901,14 +901,8 @@ final class ActivityStack { prev.task.touchActiveTime(); clearLaunchTime(prev); final ActivityRecord next = mStackSupervisor.topRunningActivityLocked(); // In freeform mode we only update the thumbnail when there is no thumbnail yet since every // focus change will request a thumbnail to be taken. // Note furthermore that since windows can change their content in freeform mode all the // time a thumbnail is possibly constantly outdated. if (mService.mHasRecents && (next == null || next.noDisplay || next.task != prev.task || uiSleeping) && (!prev.task.hasThumbnail() || prev.task.stack.mStackId != FREEFORM_WORKSPACE_STACK_ID)) { if (mService.mHasRecents && (next == null || next.noDisplay || next.task != prev.task || uiSleeping)) { prev.updateThumbnailLocked(screenshotActivities(prev), null); } stopFullyDrawnTraceIfNeeded(); Loading
services/core/java/com/android/server/am/TaskRecord.java +0 −8 Original line number Diff line number Diff line Loading @@ -484,14 +484,6 @@ final class TaskRecord { setNextAffiliate(null); } /** * Returns true when we have a thumbnail. * @return Returns true if there is a thumbnail. */ boolean hasThumbnail() { return mLastThumbnail != null; } /** * Sets the last thumbnail. * @return whether the thumbnail was set Loading