vibration: Fix spurious exception if vibration is disabled
(The disabled value is '' not 'none' for vibration)merge-requests/7/head
parent
3bc4338959
commit
47827463f9
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue