From c65a0a16de4a9d61c5b9818548029e527680b0a8 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Tue, 11 Oct 2016 17:57:50 +0200 Subject: [PATCH] fix mi band try vibration buttons --- .../devices/miband/MiBandPreferencesActivity.java | 2 +- app/src/main/res/xml/miband_preferences.xml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBandPreferencesActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBandPreferencesActivity.java index dbb83aaf6..e121413f5 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBandPreferencesActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBandPreferencesActivity.java @@ -57,7 +57,7 @@ public class MiBandPreferencesActivity extends AbstractSettingsActivity { private void addTryListeners() { for (final NotificationType type : NotificationType.values()) { - String prefKey = "mi_try_" + type.getFixedValue(); + String prefKey = "mi_try_" + type.getGenericType(); final Preference tryPref = findPreference(prefKey); if (tryPref != null) { tryPref.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { diff --git a/app/src/main/res/xml/miband_preferences.xml b/app/src/main/res/xml/miband_preferences.xml index 9ee915bd8..e59b4f896 100644 --- a/app/src/main/res/xml/miband_preferences.xml +++ b/app/src/main/res/xml/miband_preferences.xml @@ -70,7 +70,7 @@ android:title="@string/pref_title_notifications_repetitions" /> @@ -116,7 +116,7 @@ android:maxLength="1" android:title="@string/pref_title_notifications_repetitions" /> @@ -141,7 +141,7 @@ android:maxLength="1" android:title="@string/pref_title_notifications_repetitions" /> @@ -216,7 +216,7 @@ android:maxLength="1" android:title="@string/pref_title_notifications_repetitions" />