diff options
author | Winson Chung <winsonc@google.com> | 2014-10-22 14:46:43 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2014-10-22 14:46:43 -0700 |
commit | 9a22a175f6c73d448e5d2223d6ae16aa59b99b28 (patch) | |
tree | d7e92df2ad7c76a013ca8732785a0e9500933727 /packages/SystemUI/src/com/android/systemui/recents | |
parent | a9a550dd8e87b33979670cf856838ba227500547 (diff) | |
download | frameworks_base-9a22a175f6c73d448e5d2223d6ae16aa59b99b28.zip frameworks_base-9a22a175f6c73d448e5d2223d6ae16aa59b99b28.tar.gz frameworks_base-9a22a175f6c73d448e5d2223d6ae16aa59b99b28.tar.bz2 |
Fixing issue where Recents would not work if the time is changed. (Bug 17995039)
Change-Id: I389631aac1dba30003e82e7c2beac86d01117dfb
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recents')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java b/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java index 1ca67bc..cd07b08 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java +++ b/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java @@ -327,7 +327,8 @@ public class AlternateRecentsComponent implements ActivityOptions.OnAnimationSta // If the user has toggled it too quickly, then just eat up the event here (it's better than // showing a janky screenshot). // NOTE: Ideally, the screenshot mechanism would take the window transform into account - if (System.currentTimeMillis() - mLastToggleTime < sMinToggleDelay) { + long currentTime = System.currentTimeMillis(); + if ((currentTime > mLastToggleTime) && (currentTime - mLastToggleTime) < sMinToggleDelay) { return; } |