From 3b028d754f26f7e7092db6346199e313b87412b1 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Wed, 13 May 2015 14:17:16 -0700 Subject: [PATCH] Use platform delay for assist long press gesture Bug: 20853645 Change-Id: I1f25a04bfc7d07077211743b9d258fd637a402e6 --- packages/SystemUI/res/values/config.xml | 3 --- .../com/android/systemui/statusbar/phone/PhoneStatusBar.java | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml index 6e7942345c6a5..354e99df3dade 100644 --- a/packages/SystemUI/res/values/config.xml +++ b/packages/SystemUI/res/values/config.xml @@ -69,9 +69,6 @@ true - - 200 - 0 diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index f983f58061c7a..887b8f4fe2d3c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -79,6 +79,7 @@ import android.view.MotionEvent; import android.view.ThreadedRenderer; import android.view.VelocityTracker; import android.view.View; +import android.view.ViewConfiguration; import android.view.ViewGroup.LayoutParams; import android.view.ViewStub; import android.view.WindowManager; @@ -1197,8 +1198,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } private void updateShowSearchHoldoff() { - mShowSearchHoldoff = mContext.getResources().getInteger( - R.integer.config_show_search_delay); + mShowSearchHoldoff = ViewConfiguration.getLongPressTimeout(); } private void updateNotificationShade() {