vibration: Fix spurious exception if vibration is disabled

(The disabled value is '' not 'none' for vibration)
merge-requests/7/head
Angus Gratton 2020-09-24 09:10:27 +10:00
parent 3bc4338959
commit 47827463f9
1 changed files with 1 additions and 1 deletions

View File

@ -674,7 +674,7 @@ public class MeditationAssistant extends Application {
// Vibrate device
if (!skipVibration) {
String vibration = prefs.getString("pref_meditation_vibrate_" + label, "");
if (!vibration.equals("none")) {
if (!vibration.isEmpty()) {
if (vibration.equals("custom")) {
vibrateDevice(prefs.getString("pref_meditation_vibrate_" + label + "_custom", ""));
} else {