Reduced vibration duration to 100ms and added it to UIUtils

This commit is contained in:
Akshay Zade 2015-07-19 20:19:37 +05:30
parent a90349ec49
commit c65ae70b99
2 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}
}

View File

@ -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