Merge "Fix issue #18240452: No recents screenshot when resuming from keyguard." into lmp-mr1-dev

automerge: c56a1f1

* commit 'c56a1f17153844c8015a440ed52e84bbce0b894f':
  Fix issue #18240452: No recents screenshot when resuming from keyguard.
This commit is contained in:
Wale Ogunwale
2014-11-05 01:25:09 +00:00
committed by android-build-merger

View File

@@ -835,7 +835,7 @@ final class ActivityStack {
prev.task.touchActiveTime(); prev.task.touchActiveTime();
clearLaunchTime(prev); clearLaunchTime(prev);
final ActivityRecord next = mStackSupervisor.topRunningActivityLocked(); final ActivityRecord next = mStackSupervisor.topRunningActivityLocked();
if (mService.mHasRecents && (next == null || next.noDisplay || next.task != prev.task)) { if (mService.mHasRecents && (next == null || next.noDisplay || next.task != prev.task || uiSleeping)) {
prev.updateThumbnail(screenshotActivities(prev), null); prev.updateThumbnail(screenshotActivities(prev), null);
} }
stopFullyDrawnTraceIfNeeded(); stopFullyDrawnTraceIfNeeded();