1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-03 08:52:58 +01:00

Add setting to wake+unlock on OPEN notif response

This commit is contained in:
Ganblejs 2024-04-09 08:57:49 +02:00 committed by José Rebelo
parent e00d234f09
commit dae5a77b17
3 changed files with 13 additions and 0 deletions

View File

@ -249,6 +249,7 @@ public class DeviceSettingsPreferenceConst {
public static final String PREF_CASIO_ALERT_SMS = "casio_alert_sms";
public static final String PREF_AUTOREMOVE_MESSAGE = "autoremove_message";
public static final String PREF_SEND_APP_NOTIFICATIONS = "send_app_notifications";
public static final String PREF_NOTIFICATION_WAKE_ON_OPEN = "notification_wake_on_open";
public static final String PREF_AUTOREMOVE_NOTIFICATIONS = "autoremove_notifications";
public static final String PREF_SCREEN_ON_ON_NOTIFICATIONS = "screen_on_on_notifications";
public static final String PREF_WORKOUT_KEEP_SCREEN_ON = "workout_keep_screen_on";

View File

@ -233,6 +233,8 @@
<string name="pref_title_notifications_call">Phone Calls</string>
<string name="pref_title_notification_delay_calls">Call notification delay</string>
<string name="pref_summary_notification_delay_calls">Delay before sending incoming call notifications to the device, in seconds.</string>
<string name="pref_title_notification_wake_on_open">Auto wake and unlock</string>
<string name="pref_summary_notification_wake_on_open">Wake and unlock the Android device when the gadget sends a OPEN response back. Needs to be in a trusted state.</string>
<string name="pref_summary_receive_calls_watch">Perform and receive calls directly on the watch</string>
<string name="bluetooth_calls">Bluetooth calls</string>
<string name="bluetooth_calls_pairing">Bluetooth calls pairing</string>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@drawable/ic_notifications"
android:key="notification_wake_on_open"
android:layout="@layout/preference_checkbox"
android:summary="@string/pref_summary_notification_wake_on_open"
android:title="@string/pref_title_notification_wake_on_open" />
</androidx.preference.PreferenceScreen>