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/AlbumSetPage.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/AlbumSetPage.java')
-rw-r--r-- | src/com/android/gallery3d/app/AlbumSetPage.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/app/AlbumSetPage.java b/src/com/android/gallery3d/app/AlbumSetPage.java index fcec604cc..038d34895 100644 --- a/src/com/android/gallery3d/app/AlbumSetPage.java +++ b/src/com/android/gallery3d/app/AlbumSetPage.java @@ -23,7 +23,7 @@ import android.graphics.Rect; import android.os.Bundle; import android.os.Handler; import android.os.Message; -import android.os.Vibrator; +import android.view.HapticFeedbackConstants; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; @@ -92,7 +92,6 @@ public class AlbumSetPage extends ActivityState implements private boolean mShowClusterMenu; private GalleryActionBar mActionBar; private int mSelectedAction; - private Vibrator mVibrator; protected SelectionManager mSelectionManager; private AlbumSetDataLoader mAlbumSetDataAdapter; @@ -332,7 +331,6 @@ public class AlbumSetPage extends ActivityState implements mSubtitle = data.getString(AlbumSetPage.KEY_SET_SUBTITLE); mEyePosition = new EyePosition(context, this); mDetailsSource = new MyDetailsSource(); - mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); mActionBar = mActivity.getGalleryActionBar(); mSelectedAction = data.getInt(AlbumSetPage.KEY_SELECTED_CLUSTER_TYPE, FilterUtils.CLUSTER_BY_ALBUM); @@ -655,7 +653,7 @@ public class AlbumSetPage extends ActivityState implements case SelectionManager.ENTER_SELECTION_MODE: { mActionBar.disableClusterMenu(true); mActionModeHandler.startActionMode(); - if (mHapticsEnabled) mVibrator.vibrate(100); + performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); break; } case SelectionManager.LEAVE_SELECTION_MODE: { |