Reduced vibration duration to 100ms and added it to UIUtils
This commit is contained in:
parent
a90349ec49
commit
c65ae70b99
|
@ -159,7 +159,7 @@ public class RepeatListener implements View.OnTouchListener {
|
|||
.getBoolean(Settings.KEY_PREF_VIBRATE_REMOTE_BUTTONS,
|
||||
Settings.DEFAULT_PREF_VIBRATE_REMOTE_BUTTONS);
|
||||
if (vibrateOnPress) {
|
||||
vibrator.vibrate(500);
|
||||
vibrator.vibrate(UIUtils.buttonVibrationDuration);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,6 +52,7 @@ public class UIUtils {
|
|||
|
||||
public static final int initialButtonRepeatInterval = 400; // ms
|
||||
public static final int buttonRepeatInterval = 80; // ms
|
||||
public static final int buttonVibrationDuration = 100; //ms
|
||||
|
||||
/**
|
||||
* Formats time based on seconds
|
||||
|
|
Loading…
Reference in New Issue