1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

Mi Band 7: Add preference to display call contact information

This commit is contained in:
José Rebelo 2023-05-24 23:47:20 +01:00
parent 347048dae5
commit b091521155
2 changed files with 11 additions and 0 deletions

View File

@ -277,6 +277,8 @@ public abstract class Huami2021Coordinator extends HuamiCoordinator {
settings.add(R.xml.devicesettings_header_notifications);
if (supportsBluetoothPhoneCalls(device)) {
settings.add(R.xml.devicesettings_phone_calls_watch_pair);
} else {
settings.add(R.xml.devicesettings_display_caller);
}
settings.add(R.xml.devicesettings_sound_and_vibration);
settings.add(R.xml.devicesettings_vibrationpatterns);

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<SwitchPreference
android:defaultValue="true"
android:icon="@drawable/ic_person"
android:key="display_caller"
android:summary="@string/pref_display_caller_summary"
android:title="@string/pref_display_caller_title" />
</androidx.preference.PreferenceScreen>