Vibrations fix
This commit is contained in:
@@ -978,8 +978,11 @@ public class Actions
|
||||
{
|
||||
VibrationEffect ve = VibrationEffect.createOneShot(Long.parseLong(vibrateDuration), VibrationEffect.DEFAULT_AMPLITUDE);
|
||||
vibrator.vibrate(ve);
|
||||
}
|
||||
else
|
||||
vibrator.vibrate(Long.parseLong(vibrateDuration));
|
||||
|
||||
// For newer versions it seems we have to wait for the vibration to complete.
|
||||
// Wait for the vibration to complete.
|
||||
try
|
||||
{
|
||||
Thread.sleep(Long.parseLong(vibrateDuration));
|
||||
@@ -989,9 +992,6 @@ public class Actions
|
||||
Miscellaneous.logEvent("e", "VibrateSleep", Log.getStackTraceString(e), 5);
|
||||
}
|
||||
}
|
||||
else
|
||||
vibrator.vibrate(Long.parseLong(vibrateDuration));
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
|
||||
@@ -8,4 +8,5 @@
|
||||
* Fixed: Variable trigger didn't always compare correctly.
|
||||
* Fixed: Permission check for ability to schedule exact timers
|
||||
* Fixed: Crash in Google Play version
|
||||
* Fixed: Added waiting period for vibrations
|
||||
* Added Possibility to select UI theme, hence enabling modern UI designs
|
||||
Reference in New Issue
Block a user