1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +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() {
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() {

View File

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