diff options
author | Bobby Georgescu <georgescu@google.com> | 2012-10-31 16:33:56 -0700 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2012-10-31 16:57:39 -0700 |
commit | bcb427870043b12d4a1a454c08a088933d0eaf23 (patch) | |
tree | 573ae83fb1691befe4e8e1a311f2de7dc95e4b43 /src/com/android/gallery3d/app/AlbumPage.java | |
parent | 2b85f0d788b9759dad3632561896e6c5dcbd4f99 (diff) | |
download | android_packages_apps_Gallery2-bcb427870043b12d4a1a454c08a088933d0eaf23.tar.gz android_packages_apps_Gallery2-bcb427870043b12d4a1a454c08a088933d0eaf23.tar.bz2 android_packages_apps_Gallery2-bcb427870043b12d4a1a454c08a088933d0eaf23.zip |
Use the system-standard long press vibration pattern
Bug: 7216819
Change-Id: I575868583777a7a953d767d0cdaa91a439d908ff
Diffstat (limited to 'src/com/android/gallery3d/app/AlbumPage.java')
-rw-r--r-- | src/com/android/gallery3d/app/AlbumPage.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/app/AlbumPage.java b/src/com/android/gallery3d/app/AlbumPage.java index 9e9ce044c..dd31b04e6 100644 --- a/src/com/android/gallery3d/app/AlbumPage.java +++ b/src/com/android/gallery3d/app/AlbumPage.java @@ -24,8 +24,8 @@ import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.os.Message; -import android.os.Vibrator; import android.provider.MediaStore; +import android.view.HapticFeedbackConstants; import android.widget.Toast; import com.actionbarsherlock.view.Menu; @@ -89,7 +89,6 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster private AlbumDataLoader mAlbumDataAdapter; protected SelectionManager mSelectionManager; - private Vibrator mVibrator; private boolean mGetContent; private boolean mShowClusterMenu; @@ -371,7 +370,6 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster mShowClusterMenu = data.getBoolean(KEY_SHOW_CLUSTER_MENU, false); mDetailsSource = new MyDetailsSource(); Context context = mActivity.getAndroidContext(); - mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); // Enable auto-select-all for mtp album if (data.getBoolean(KEY_AUTO_SELECT_ALL)) { @@ -662,7 +660,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster switch (mode) { case SelectionManager.ENTER_SELECTION_MODE: { mActionModeHandler.startActionMode(); - if (mHapticsEnabled) mVibrator.vibrate(100); + performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); break; } case SelectionManager.LEAVE_SELECTION_MODE: { |