diff options
author | Winson Chung <winsonc@google.com> | 2018-05-22 14:14:38 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2018-05-23 18:30:06 -0700 |
commit | ededa9cce28ec47f4b6a392db165044c3189be64 (patch) | |
tree | 9a08ad9563acf6cc9a29974ae5caeec744f2aa8a | |
parent | 1ab656460b7baf9ac9233eab3e9582abb8d6941c (diff) | |
download | android_packages_apps_Trebuchet-ededa9cce28ec47f4b6a392db165044c3189be64.tar.gz android_packages_apps_Trebuchet-ededa9cce28ec47f4b6a392db165044c3189be64.tar.bz2 android_packages_apps_Trebuchet-ededa9cce28ec47f4b6a392db165044c3189be64.zip |
Initial changes to support full-width quickscrubbing.
Bug: 79945202
Change-Id: Ida8443432faafc74fbdc0a7dae87f0cf8c8ce648
-rw-r--r-- | quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java | 10 | ||||
-rw-r--r-- | quickstep/src/com/android/quickstep/QuickScrubController.java | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java b/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java index a2aa4b947..9ba332831 100644 --- a/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java +++ b/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java @@ -265,12 +265,10 @@ public class OtherActivityTouchConsumer extends ContextWrapper implements TouchC if (Looper.myLooper() != Looper.getMainLooper()) { startActivity.run(); - if (!mIsDeferredDownTarget) { - try { - drawWaitLock.await(LAUNCHER_DRAW_TIMEOUT_MS, TimeUnit.MILLISECONDS); - } catch (Exception e) { - // We have waited long enough for launcher to draw - } + try { + drawWaitLock.await(LAUNCHER_DRAW_TIMEOUT_MS, TimeUnit.MILLISECONDS); + } catch (Exception e) { + // We have waited long enough for launcher to draw } } else { // We should almost always get touch-town on background thread. This is an edge case diff --git a/quickstep/src/com/android/quickstep/QuickScrubController.java b/quickstep/src/com/android/quickstep/QuickScrubController.java index abb479dea..8e1a3d5d8 100644 --- a/quickstep/src/com/android/quickstep/QuickScrubController.java +++ b/quickstep/src/com/android/quickstep/QuickScrubController.java @@ -49,7 +49,7 @@ public class QuickScrubController implements OnAlarmListener { * Snap to a new page when crossing these thresholds. The first and last auto-advance. */ private static final float[] QUICK_SCRUB_THRESHOLDS = new float[] { - 0.04f, 0.27f, 0.50f, 0.73f, 0.96f + 0.05f, 0.20f, 0.35f, 0.50f, 0.65f, 0.80f, 0.95f }; private static final String TAG = "QuickScrubController"; |