Loading core/java/com/android/internal/widget/RotarySelector.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -931,8 +931,9 @@ public class RotarySelector extends View { mVibrator = (android.os.Vibrator) mVibrator = (android.os.Vibrator) getContext().getSystemService(Context.VIBRATOR_SERVICE); getContext().getSystemService(Context.VIBRATOR_SERVICE); } } final boolean hapticsEnabled = Settings.System.getInt(mContext.getContentResolver(), Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) == 1; long[] hapFeedback = stringToLongArray(Settings.System.getString(getContext().getContentResolver(),Settings.System.HAPTIC_DOWN_ARRAY)); long[] hapFeedback = stringToLongArray(Settings.System.getString(getContext().getContentResolver(),Settings.System.HAPTIC_DOWN_ARRAY)); mVibrator.vibrate(hapFeedback, -1); if (hapticsEnabled) mVibrator.vibrate(hapFeedback, -1); } } /** /** Loading core/java/com/android/internal/widget/SlidingTab.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -809,8 +809,9 @@ public class SlidingTab extends ViewGroup { mVibrator = (android.os.Vibrator) mVibrator = (android.os.Vibrator) getContext().getSystemService(Context.VIBRATOR_SERVICE); getContext().getSystemService(Context.VIBRATOR_SERVICE); } } final boolean hapticsEnabled = Settings.System.getInt(mContext.getContentResolver(), Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) == 1; long[] hapFeedback = stringToLongArray(Settings.System.getString(getContext().getContentResolver(),Settings.System.HAPTIC_DOWN_ARRAY)); long[] hapFeedback = stringToLongArray(Settings.System.getString(getContext().getContentResolver(),Settings.System.HAPTIC_DOWN_ARRAY)); mVibrator.vibrate(hapFeedback, -1); if (hapticsEnabled) mVibrator.vibrate(hapFeedback, -1); } } /** /** Loading Loading
core/java/com/android/internal/widget/RotarySelector.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -931,8 +931,9 @@ public class RotarySelector extends View { mVibrator = (android.os.Vibrator) mVibrator = (android.os.Vibrator) getContext().getSystemService(Context.VIBRATOR_SERVICE); getContext().getSystemService(Context.VIBRATOR_SERVICE); } } final boolean hapticsEnabled = Settings.System.getInt(mContext.getContentResolver(), Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) == 1; long[] hapFeedback = stringToLongArray(Settings.System.getString(getContext().getContentResolver(),Settings.System.HAPTIC_DOWN_ARRAY)); long[] hapFeedback = stringToLongArray(Settings.System.getString(getContext().getContentResolver(),Settings.System.HAPTIC_DOWN_ARRAY)); mVibrator.vibrate(hapFeedback, -1); if (hapticsEnabled) mVibrator.vibrate(hapFeedback, -1); } } /** /** Loading
core/java/com/android/internal/widget/SlidingTab.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -809,8 +809,9 @@ public class SlidingTab extends ViewGroup { mVibrator = (android.os.Vibrator) mVibrator = (android.os.Vibrator) getContext().getSystemService(Context.VIBRATOR_SERVICE); getContext().getSystemService(Context.VIBRATOR_SERVICE); } } final boolean hapticsEnabled = Settings.System.getInt(mContext.getContentResolver(), Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) == 1; long[] hapFeedback = stringToLongArray(Settings.System.getString(getContext().getContentResolver(),Settings.System.HAPTIC_DOWN_ARRAY)); long[] hapFeedback = stringToLongArray(Settings.System.getString(getContext().getContentResolver(),Settings.System.HAPTIC_DOWN_ARRAY)); mVibrator.vibrate(hapFeedback, -1); if (hapticsEnabled) mVibrator.vibrate(hapFeedback, -1); } } /** /** Loading