edit vibration pattern for vibrate hourly (if it is enabled)

This commit is contained in:
rICTx-T1D 2020-09-30 16:21:33 +02:00 committed by mh
parent 001591a1d6
commit b74118bbca

View file

@ -138,7 +138,7 @@ public class RICTxWF01 extends BaseWatchFace {
if (hourlyVibratePref && layoutSet && newTime.hasHourChanged(oldTime)) { if (hourlyVibratePref && layoutSet && newTime.hasHourChanged(oldTime)) {
Log.i("hourlyVibratePref", "true --> " + newTime.toString()); Log.i("hourlyVibratePref", "true --> " + newTime.toString());
Vibrator vibrator = (Vibrator) getSystemService(VIBRATOR_SERVICE); Vibrator vibrator = (Vibrator) getSystemService(VIBRATOR_SERVICE);
long[] vibrationPattern = {0, 300, 150, 150}; long[] vibrationPattern = {0, 150, 125, 100};
vibrator.vibrate(vibrationPattern, -1); vibrator.vibrate(vibrationPattern, -1);
} }