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