Merge "Let the framework handle long clicks"
diff --git a/src/com/android/settings/wifi/AccessPointPreference.java b/src/com/android/settings/wifi/AccessPointPreference.java
index ce2601c..061055a 100644
--- a/src/com/android/settings/wifi/AccessPointPreference.java
+++ b/src/com/android/settings/wifi/AccessPointPreference.java
@@ -101,13 +101,7 @@
         if (mFragment != null) {
             view.itemView.setOnCreateContextMenuListener(mFragment);
             view.itemView.setTag(this);
-            view.itemView.setOnLongClickListener(new View.OnLongClickListener() {
-                @Override
-                public boolean onLongClick(View v) {
-                    view.itemView.showContextMenu();
-                    return true;
-                }
-            });
+            view.itemView.setLongClickable(true);
         }
         if (mAccessPoint == null) {
             // Used for dummy pref.