Add one-pod mode for reactions

This commit is contained in:
darken
2022-01-24 15:29:05 +01:00
parent 38bc3be5b7
commit c5b1c417a4
8 changed files with 77 additions and 11 deletions
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M19,3L5,3c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2L21,5c0,-1.1 -0.9,-2 -2,-2zM14,17h-2L12,9h-2L10,7h4v10z" />
</vector>
+2
View File
@@ -132,4 +132,6 @@
<string name="overview_bluetooth_disabled_description">Bluetooth is disabled, enable it ;).</string>
<string name="help_translate_label">Translation</string>
<string name="help_translate_description">Help translate this into your favorite language.</string>
<string name="settings_onepod_mode_label">One pod mode</string>
<string name="settings_onepod_mode_description">Wearing both pods is not required, wearing a single pod is sufficient to trigger reactions.</string>
</resources>
@@ -1,6 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference
android:icon="@drawable/ic_baseline_looks_one_24"
android:key="reaction.onepod.enabled"
android:summary="@string/settings_onepod_mode_description"
android:title="@string/settings_onepod_mode_label" />
<CheckBoxPreference
android:icon="@drawable/ic_baseline_play_circle_24"
android:key="reaction.autoplay.enabled"