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:
parent
09a5c7cceb
commit
c65a0a16de
@ -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() {
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user