1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 06:22:55 +01:00

fix mi band try vibration buttons

This commit is contained in:
Andreas Shimokawa 2016-10-11 17:57:50 +02:00
parent 09a5c7cceb
commit c65a0a16de
2 changed files with 5 additions and 5 deletions

View File

@ -57,7 +57,7 @@ public class MiBandPreferencesActivity extends AbstractSettingsActivity {
private void addTryListeners() { private void addTryListeners() {
for (final NotificationType type : NotificationType.values()) { for (final NotificationType type : NotificationType.values()) {
String prefKey = "mi_try_" + type.getFixedValue(); String prefKey = "mi_try_" + type.getGenericType();
final Preference tryPref = findPreference(prefKey); final Preference tryPref = findPreference(prefKey);
if (tryPref != null) { if (tryPref != null) {
tryPref.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { tryPref.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {

View File

@ -70,7 +70,7 @@
android:title="@string/pref_title_notifications_repetitions" /> android:title="@string/pref_title_notifications_repetitions" />
<Preference <Preference
android:key="mi_try_sms" android:key="mi_try_generic_sms"
android:persistent="false" android:persistent="false"
android:title="@string/vibration_try"/> android:title="@string/vibration_try"/>
</PreferenceScreen> </PreferenceScreen>
@ -116,7 +116,7 @@
android:maxLength="1" android:maxLength="1"
android:title="@string/pref_title_notifications_repetitions" /> android:title="@string/pref_title_notifications_repetitions" />
<Preference <Preference
android:key="mi_try_email" android:key="mi_try_generic_34email"
android:persistent="false" android:persistent="false"
android:title="@string/vibration_try"/> android:title="@string/vibration_try"/>
</PreferenceScreen> </PreferenceScreen>
@ -141,7 +141,7 @@
android:maxLength="1" android:maxLength="1"
android:title="@string/pref_title_notifications_repetitions" /> android:title="@string/pref_title_notifications_repetitions" />
<Preference <Preference
android:key="mi_try_chat" android:key="mi_try_generic_chat"
android:persistent="false" android:persistent="false"
android:title="@string/vibration_try"/> android:title="@string/vibration_try"/>
</PreferenceScreen> </PreferenceScreen>
@ -216,7 +216,7 @@
android:maxLength="1" android:maxLength="1"
android:title="@string/pref_title_notifications_repetitions" /> android:title="@string/pref_title_notifications_repetitions" />
<Preference <Preference
android:key="mi_try_unknown" android:key="mi_try_generic"
android:persistent="false" android:persistent="false"
android:title="@string/vibration_try"/> android:title="@string/vibration_try"/>
</PreferenceScreen> </PreferenceScreen>