summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2017-09-14 17:51:48 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-09-14 17:51:48 +0000
commit2dd64c0710843b7caed646ccf5b3440f35c24cf0 (patch)
treee365c049baeaea3ef7d37b3b215ffc7295bb78e0 /src/com/android/launcher3/Launcher.java
parent83f7683509b95614a1a74f8bddb0c5691f9968db (diff)
parent3705664cf0b5e3b101d2a11377c13fab5675c8e2 (diff)
downloadandroid_packages_apps_Trebuchet-2dd64c0710843b7caed646ccf5b3440f35c24cf0.tar.gz
android_packages_apps_Trebuchet-2dd64c0710843b7caed646ccf5b3440f35c24cf0.tar.bz2
android_packages_apps_Trebuchet-2dd64c0710843b7caed646ccf5b3440f35c24cf0.zip
Merge changes from topic "am-ef87c1d2-519f-467f-b097-802ff59b63b3" into ub-launcher3-master
* changes: [automerger] Remove haptic on touch down Bug: 65463659 am: d315ff2bc2 Remove haptic on touch down Bug: 65463659
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r--src/com/android/launcher3/Launcher.java21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 76f5cda35..f02d5d2e8 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -280,8 +280,6 @@ public class Launcher extends BaseActivity
private PopupDataProvider mPopupDataProvider;
- private View.OnTouchListener mHapticFeedbackTouchListener;
-
// Determines how long to wait after a rotation before restoring the screen orientation to
// match the sensor state.
private static final int RESTORE_SCREEN_ORIENTATION_DELAY = 500;
@@ -1226,7 +1224,6 @@ public class Launcher extends BaseActivity
onClickWallpaperPicker(view);
}
}.attachTo(wallpaperButton);
- wallpaperButton.setOnTouchListener(getHapticFeedbackTouchListener());
// Bind widget button actions
mWidgetsButton = findViewById(R.id.widget_button);
@@ -1236,7 +1233,6 @@ public class Launcher extends BaseActivity
onClickAddWidgetButton(view);
}
}.attachTo(mWidgetsButton);
- mWidgetsButton.setOnTouchListener(getHapticFeedbackTouchListener());
// Bind settings actions
View settingsButton = findViewById(R.id.settings_button);
@@ -1248,7 +1244,6 @@ public class Launcher extends BaseActivity
onClickSettingsButton(view);
}
}.attachTo(settingsButton);
- settingsButton.setOnTouchListener(getHapticFeedbackTouchListener());
} else {
settingsButton.setVisibility(View.GONE);
}
@@ -2421,22 +2416,6 @@ public class Launcher extends BaseActivity
startActivity(intent, getActivityLaunchOptions(v));
}
- public View.OnTouchListener getHapticFeedbackTouchListener() {
- if (mHapticFeedbackTouchListener == null) {
- mHapticFeedbackTouchListener = new View.OnTouchListener() {
- @SuppressLint("ClickableViewAccessibility")
- @Override
- public boolean onTouch(View v, MotionEvent event) {
- if ((event.getAction() & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_DOWN) {
- v.performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY);
- }
- return false;
- }
- };
- }
- return mHapticFeedbackTouchListener;
- }
-
@Override
public void onAccessibilityStateChanged(boolean enabled) {
mDragLayer.onAccessibilityStateChanged(enabled);