diff options
author | Vadim Tryshev <vadimt@google.com> | 2019-04-05 20:07:05 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-04-05 20:07:05 +0000 |
commit | 5a0f7b1c3becceb805657c3290bac20648682641 (patch) | |
tree | 969f0fbda6f60d122213657b5500d7c8a7d4e7e0 | |
parent | 3e9879618970066423a1bb51da7c2733a6e1116e (diff) | |
parent | 423bf62ea0454d76f48df6d83c2c393309445f92 (diff) | |
download | android_packages_apps_Trebuchet-5a0f7b1c3becceb805657c3290bac20648682641.tar.gz android_packages_apps_Trebuchet-5a0f7b1c3becceb805657c3290bac20648682641.tar.bz2 android_packages_apps_Trebuchet-5a0f7b1c3becceb805657c3290bac20648682641.zip |
Merge "More diags for b/129434166" into ub-launcher3-master
-rw-r--r-- | src/com/android/launcher3/CheckLongPressHelper.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/com/android/launcher3/CheckLongPressHelper.java b/src/com/android/launcher3/CheckLongPressHelper.java index 639c173dc..5424a8f2e 100644 --- a/src/com/android/launcher3/CheckLongPressHelper.java +++ b/src/com/android/launcher3/CheckLongPressHelper.java @@ -33,12 +33,20 @@ public class CheckLongPressHelper { class CheckForLongPress implements Runnable { public void run() { + if (com.android.launcher3.TestProtocol.sDebugTracing) { + android.util.Log.d(com.android.launcher3.TestProtocol.NO_DRAG_TAG, + "CheckForLongPress1"); + } if ((mView.getParent() != null) && mView.hasWindowFocus() && !mHasPerformedLongPress) { boolean handled; if (mListener != null) { handled = mListener.onLongClick(mView); } else { + if (com.android.launcher3.TestProtocol.sDebugTracing) { + android.util.Log.d(com.android.launcher3.TestProtocol.NO_DRAG_TAG, + "CheckForLongPress2"); + } handled = mView.performLongClick(); } if (handled) { @@ -73,11 +81,20 @@ public class CheckLongPressHelper { } mView.postDelayed(mPendingCheckForLongPress, (long) (ViewConfiguration.getLongPressTimeout() * mLongPressTimeoutFactor)); + if (com.android.launcher3.TestProtocol.sDebugTracing) { + android.util.Log.d(com.android.launcher3.TestProtocol.NO_DRAG_TAG, + "postCheckForLongPress: " + ViewConfiguration.getLongPressTimeout() + " " + + mLongPressTimeoutFactor); + } } public void cancelLongPress() { mHasPerformedLongPress = false; if (mPendingCheckForLongPress != null) { + if (com.android.launcher3.TestProtocol.sDebugTracing) { + android.util.Log.d(com.android.launcher3.TestProtocol.NO_DRAG_TAG, + "cancelLongPress"); + } mView.removeCallbacks(mPendingCheckForLongPress); mPendingCheckForLongPress = null; } |