mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-03 08:52:58 +01:00
Mi Band 7: Add preference to display call contact information
This commit is contained in:
parent
347048dae5
commit
b091521155
@ -277,6 +277,8 @@ public abstract class Huami2021Coordinator extends HuamiCoordinator {
|
|||||||
settings.add(R.xml.devicesettings_header_notifications);
|
settings.add(R.xml.devicesettings_header_notifications);
|
||||||
if (supportsBluetoothPhoneCalls(device)) {
|
if (supportsBluetoothPhoneCalls(device)) {
|
||||||
settings.add(R.xml.devicesettings_phone_calls_watch_pair);
|
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_sound_and_vibration);
|
||||||
settings.add(R.xml.devicesettings_vibrationpatterns);
|
settings.add(R.xml.devicesettings_vibrationpatterns);
|
||||||
|
9
app/src/main/res/xml/devicesettings_display_caller.xml
Normal file
9
app/src/main/res/xml/devicesettings_display_caller.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user