diff options
author | Tyler Nijmeh <tylernij@gmail.com> | 2021-03-31 02:38:56 -0700 |
---|---|---|
committer | Tyler Nijmeh <tylernij@gmail.com> | 2021-03-31 02:38:56 -0700 |
commit | 2c568f87a34d7c7cac8f502044ba11a3e24e7202 (patch) | |
tree | 1ff343465d90c191bcd4a06b8bdb9cf0c5700cba /app | |
parent | a71024e34bef842b8d25e152f989af0e92048e09 (diff) |
Add icons
Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
Diffstat (limited to 'app')
22 files changed, 245 insertions, 31 deletions
diff --git a/app/src/main/java/com/draco/buoy/fragments/MainPreferenceFragment.kt b/app/src/main/java/com/draco/buoy/fragments/MainPreferenceFragment.kt index 7e21e21..8292988 100644 --- a/app/src/main/java/com/draco/buoy/fragments/MainPreferenceFragment.kt +++ b/app/src/main/java/com/draco/buoy/fragments/MainPreferenceFragment.kt @@ -82,8 +82,8 @@ class MainPreferenceFragment : PreferenceFragmentCompat(), SharedPreferences.OnS findPreference<SeekBarPreference>(getString(R.string.pref_config_key_adjust_brightness_factor))?.value = (currentProfile.adjustBrightnessFactor * 100).toInt() findPreference<SwitchPreference>(getString(R.string.pref_config_key_force_all_apps_standby))?.isChecked = currentProfile.forceAllAppsStandby findPreference<SwitchPreference>(getString(R.string.pref_config_key_force_background_check))?.isChecked = currentProfile.forceBackgroundCheck - findPreference<SwitchPreference>(getString(R.string.pref_config_key_optional_sensors_disabled))?.isChecked = currentProfile.optionalSensorsDisabled - findPreference<SwitchPreference>(getString(R.string.pref_config_key_aod_enabled))?.isChecked = currentProfile.aodDisabled + findPreference<SwitchPreference>(getString(R.string.pref_config_key_optional_sensors_enabled))?.isChecked = !currentProfile.optionalSensorsDisabled + findPreference<SwitchPreference>(getString(R.string.pref_config_key_aod_enabled))?.isChecked = !currentProfile.aodDisabled findPreference<SwitchPreference>(getString(R.string.pref_config_key_quick_doze_enabled))?.isChecked = currentProfile.quickDozeEnabled } @@ -104,8 +104,8 @@ class MainPreferenceFragment : PreferenceFragmentCompat(), SharedPreferences.OnS findPreference<SeekBarPreference>(getString(R.string.pref_config_key_adjust_brightness_factor))!!.value / 100f, findPreference<SwitchPreference>(getString(R.string.pref_config_key_force_all_apps_standby))!!.isChecked, findPreference<SwitchPreference>(getString(R.string.pref_config_key_force_background_check))!!.isChecked, - findPreference<SwitchPreference>(getString(R.string.pref_config_key_optional_sensors_disabled))!!.isChecked, - findPreference<SwitchPreference>(getString(R.string.pref_config_key_aod_enabled))!!.isChecked , + !findPreference<SwitchPreference>(getString(R.string.pref_config_key_optional_sensors_enabled))!!.isChecked, + !findPreference<SwitchPreference>(getString(R.string.pref_config_key_aod_enabled))!!.isChecked, findPreference<SwitchPreference>(getString(R.string.pref_config_key_quick_doze_enabled))!!.isChecked ) batterySaverManager.setConstantsConfig(config) diff --git a/app/src/main/res/drawable/ic_baseline_animation_24.xml b/app/src/main/res/drawable/ic_baseline_animation_24.xml new file mode 100644 index 0000000..cd47805 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_animation_24.xml @@ -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="M15,2c-2.71,0 -5.05,1.54 -6.22,3.78 -1.28,0.67 -2.34,1.72 -3,3C3.54,9.95 2,12.29 2,15c0,3.87 3.13,7 7,7 2.71,0 5.05,-1.54 6.22,-3.78 1.28,-0.67 2.34,-1.72 3,-3C20.46,14.05 22,11.71 22,9c0,-3.87 -3.13,-7 -7,-7zM9,20c-2.76,0 -5,-2.24 -5,-5 0,-1.12 0.37,-2.16 1,-3 0,3.87 3.13,7 7,7 -0.84,0.63 -1.88,1 -3,1zM12,17c-2.76,0 -5,-2.24 -5,-5 0,-1.12 0.37,-2.16 1,-3 0,3.86 3.13,6.99 7,7 -0.84,0.63 -1.88,1 -3,1zM16.7,13.7c-0.53,0.19 -1.1,0.3 -1.7,0.3 -2.76,0 -5,-2.24 -5,-5 0,-0.6 0.11,-1.17 0.3,-1.7 0.53,-0.19 1.1,-0.3 1.7,-0.3 2.76,0 5,2.24 5,5 0,0.6 -0.11,1.17 -0.3,1.7zM19,12c0,-3.86 -3.13,-6.99 -7,-7 0.84,-0.63 1.87,-1 3,-1 2.76,0 5,2.24 5,5 0,1.12 -0.37,2.16 -1,3z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_aod_24.xml b/app/src/main/res/drawable/ic_baseline_aod_24.xml new file mode 100644 index 0000000..9892369 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_aod_24.xml @@ -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="M17,1.01L7,1C5.9,1 5,1.9 5,3v18c0,1.1 0.9,2 2,2h10c1.1,0 2,-0.9 2,-2V3C19,1.9 18.1,1.01 17,1.01zM17,18H7V6h10V18zM8,10h8v1.5H8V10zM9,13h6v1.5H9V13z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_api_24.xml b/app/src/main/res/drawable/ic_baseline_api_24.xml new file mode 100644 index 0000000..b7f8f01 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_api_24.xml @@ -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="M14,12l-2,2l-2,-2l2,-2L14,12zM12,6l2.12,2.12l2.5,-2.5L12,1L7.38,5.62l2.5,2.5L12,6zM6,12l2.12,-2.12l-2.5,-2.5L1,12l4.62,4.62l2.5,-2.5L6,12zM18,12l-2.12,2.12l2.5,2.5L23,12l-4.62,-4.62l-2.5,2.5L18,12zM12,18l-2.12,-2.12l-2.5,2.5L12,23l4.62,-4.62l-2.5,-2.5L12,18z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_battery_alert_24.xml b/app/src/main/res/drawable/ic_baseline_battery_alert_24.xml new file mode 100644 index 0000000..f171af7 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_battery_alert_24.xml @@ -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="M15.67,4L14,4L14,2h-4v2L8.33,4C7.6,4 7,4.6 7,5.33v15.33C7,21.4 7.6,22 8.33,22h7.33c0.74,0 1.34,-0.6 1.34,-1.33L17,5.33C17,4.6 16.4,4 15.67,4zM13,18h-2v-2h2v2zM13,14h-2L11,9h2v5z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_bed_24.xml b/app/src/main/res/drawable/ic_baseline_bed_24.xml new file mode 100644 index 0000000..b4ccfba --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_bed_24.xml @@ -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="M21,10.78V8c0,-1.65 -1.35,-3 -3,-3h-4c-0.77,0 -1.47,0.3 -2,0.78C11.47,5.3 10.77,5 10,5H6C4.35,5 3,6.35 3,8v2.78C2.39,11.33 2,12.12 2,13v6h2v-2h16v2h2v-6C22,12.12 21.61,11.33 21,10.78zM14,7h4c0.55,0 1,0.45 1,1v2h-6V8C13,7.45 13.45,7 14,7zM5,8c0,-0.55 0.45,-1 1,-1h4c0.55,0 1,0.45 1,1v2H5V8zM4,15v-2c0,-0.55 0.45,-1 1,-1h14c0.55,0 1,0.45 1,1v2H4z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_brightness_low_24.xml b/app/src/main/res/drawable/ic_baseline_brightness_low_24.xml new file mode 100644 index 0000000..7573d6c --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_brightness_low_24.xml @@ -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="M20,15.31L23.31,12 20,8.69V4h-4.69L12,0.69 8.69,4H4v4.69L0.69,12 4,15.31V20h4.69L12,23.31 15.31,20H20v-4.69zM12,18c-3.31,0 -6,-2.69 -6,-6s2.69,-6 6,-6 6,2.69 6,6 -2.69,6 -6,6z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_checklist_24.xml b/app/src/main/res/drawable/ic_baseline_checklist_24.xml new file mode 100644 index 0000000..64e7ee3 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_checklist_24.xml @@ -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="M22,7h-9v2h9V7zM22,15h-9v2h9V15zM5.54,11L2,7.46l1.41,-1.41l2.12,2.12l4.24,-4.24l1.41,1.41L5.54,11zM5.54,19L2,15.46l1.41,-1.41l2.12,2.12l4.24,-4.24l1.41,1.41L5.54,19z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_cloud_upload_24.xml b/app/src/main/res/drawable/ic_baseline_cloud_upload_24.xml new file mode 100644 index 0000000..2896516 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_cloud_upload_24.xml @@ -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.35,10.04C18.67,6.59 15.64,4 12,4 9.11,4 6.6,5.64 5.35,8.04 2.34,8.36 0,10.91 0,14c0,3.31 2.69,6 6,6h13c2.76,0 5,-2.24 5,-5 0,-2.64 -2.05,-4.78 -4.65,-4.96zM14,13v4h-4v-4H7l5,-5 5,5h-3z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_data_saver_on_24.xml b/app/src/main/res/drawable/ic_baseline_data_saver_on_24.xml new file mode 100644 index 0000000..cd4a458 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_data_saver_on_24.xml @@ -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="M11,8v3H8v2h3v3h2v-3h3v-2h-3V8H11zM13,2.05v3.03c3.39,0.49 6,3.39 6,6.92c0,0.9 -0.18,1.75 -0.48,2.54l2.6,1.53C21.68,14.83 22,13.45 22,12C22,6.82 18.05,2.55 13,2.05zM12,19c-3.87,0 -7,-3.13 -7,-7c0,-3.53 2.61,-6.43 6,-6.92V2.05C5.94,2.55 2,6.81 2,12c0,5.52 4.47,10 9.99,10c3.31,0 6.24,-1.61 8.06,-4.09l-2.6,-1.53C16.17,17.98 14.21,19 12,19z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_flight_takeoff_24.xml b/app/src/main/res/drawable/ic_baseline_flight_takeoff_24.xml new file mode 100644 index 0000000..c591541 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_flight_takeoff_24.xml @@ -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="M2.5,19h19v2h-19V19zM22.07,9.64c-0.21,-0.8 -1.04,-1.28 -1.84,-1.06L14.92,10l-6.9,-6.43L6.09,4.08l4.14,7.17l-4.97,1.33l-1.97,-1.54l-1.45,0.39l2.59,4.49c0,0 7.12,-1.9 16.57,-4.43C21.81,11.26 22.28,10.44 22.07,9.64z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_location_on_24.xml b/app/src/main/res/drawable/ic_baseline_location_on_24.xml new file mode 100644 index 0000000..e6dfeb4 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_location_on_24.xml @@ -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="M12,2C8.13,2 5,5.13 5,9c0,5.25 7,13 7,13s7,-7.75 7,-13c0,-3.87 -3.13,-7 -7,-7zM12,11.5c-1.38,0 -2.5,-1.12 -2.5,-2.5s1.12,-2.5 2.5,-2.5 2.5,1.12 2.5,2.5 -1.12,2.5 -2.5,2.5z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_mode_night_24.xml b/app/src/main/res/drawable/ic_baseline_mode_night_24.xml new file mode 100644 index 0000000..180c1ad --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_mode_night_24.xml @@ -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="M9.5,2c-1.82,0 -3.53,0.5 -5,1.35c2.99,1.73 5,4.95 5,8.65s-2.01,6.92 -5,8.65C5.97,21.5 7.68,22 9.5,22c5.52,0 10,-4.48 10,-10S15.02,2 9.5,2z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_security_24.xml b/app/src/main/res/drawable/ic_baseline_security_24.xml new file mode 100644 index 0000000..c9e27cc --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_security_24.xml @@ -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="M12,1L3,5v6c0,5.55 3.84,10.74 9,12 5.16,-1.26 9,-6.45 9,-12L21,5l-9,-4zM12,11.99h7c-0.53,4.12 -3.28,7.79 -7,8.94L12,12L5,12L5,6.3l7,-3.11v8.8z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_sensors_24.xml b/app/src/main/res/drawable/ic_baseline_sensors_24.xml new file mode 100644 index 0000000..1f867db --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_sensors_24.xml @@ -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="M7.76,16.24C6.67,15.16 6,13.66 6,12s0.67,-3.16 1.76,-4.24l1.42,1.42C8.45,9.9 8,10.9 8,12c0,1.1 0.45,2.1 1.17,2.83L7.76,16.24zM16.24,16.24C17.33,15.16 18,13.66 18,12s-0.67,-3.16 -1.76,-4.24l-1.42,1.42C15.55,9.9 16,10.9 16,12c0,1.1 -0.45,2.1 -1.17,2.83L16.24,16.24zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2s2,-0.9 2,-2S13.1,10 12,10zM20,12c0,2.21 -0.9,4.21 -2.35,5.65l1.42,1.42C20.88,17.26 22,14.76 22,12s-1.12,-5.26 -2.93,-7.07l-1.42,1.42C19.1,7.79 20,9.79 20,12zM6.35,6.35L4.93,4.93C3.12,6.74 2,9.24 2,12s1.12,5.26 2.93,7.07l1.42,-1.42C4.9,16.21 4,14.21 4,12S4.9,7.79 6.35,6.35z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_snooze_24.xml b/app/src/main/res/drawable/ic_baseline_snooze_24.xml new file mode 100644 index 0000000..6c824a1 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_snooze_24.xml @@ -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="M7.88,3.39L6.6,1.86 2,5.71l1.29,1.53 4.59,-3.85zM22,5.72l-4.6,-3.86 -1.29,1.53 4.6,3.86L22,5.72zM12,4c-4.97,0 -9,4.03 -9,9s4.02,9 9,9c4.97,0 9,-4.03 9,-9s-4.03,-9 -9,-9zM12,20c-3.87,0 -7,-3.13 -7,-7s3.13,-7 7,-7 7,3.13 7,7 -3.13,7 -7,7zM9,11h3.63L9,15.2L9,17h6v-2h-3.63L15,10.8L15,9L9,9v2z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_undo_24.xml b/app/src/main/res/drawable/ic_baseline_undo_24.xml new file mode 100644 index 0000000..4ce4108 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_undo_24.xml @@ -0,0 +1,11 @@ +<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" + android:autoMirrored="true"> + <path + android:fillColor="@android:color/white" + android:pathData="M12.5,8c-2.65,0 -5.05,0.99 -6.9,2.6L2,7v9h9l-3.62,-3.62c1.39,-1.16 3.16,-1.88 5.12,-1.88 3.54,0 6.55,2.31 7.6,5.5l2.37,-0.78C21.08,11.03 17.15,8 12.5,8z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_vibration_24.xml b/app/src/main/res/drawable/ic_baseline_vibration_24.xml new file mode 100644 index 0000000..a9600b7 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_vibration_24.xml @@ -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="M0,15h2L2,9L0,9v6zM3,17h2L5,7L3,7v10zM22,9v6h2L24,9h-2zM19,17h2L21,7h-2v10zM16.5,3h-9C6.67,3 6,3.67 6,4.5v15c0,0.83 0.67,1.5 1.5,1.5h9c0.83,0 1.5,-0.67 1.5,-1.5v-15c0,-0.83 -0.67,-1.5 -1.5,-1.5zM16,19L8,19L8,5h8v14z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_volume_up_24.xml b/app/src/main/res/drawable/ic_baseline_volume_up_24.xml new file mode 100644 index 0000000..cc288cd --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_volume_up_24.xml @@ -0,0 +1,11 @@ +<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" + android:autoMirrored="true"> + <path + android:fillColor="@android:color/white" + android:pathData="M3,9v6h4l5,5L12,4L7,9L3,9zM16.5,12c0,-1.77 -1.02,-3.29 -2.5,-4.03v8.05c1.48,-0.73 2.5,-2.25 2.5,-4.02zM14,3.23v2.06c2.89,0.86 5,3.54 5,6.71s-2.11,5.85 -5,6.71v2.06c4.01,-0.91 7,-4.49 7,-8.77s-2.99,-7.86 -7,-8.77z"/> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_vpn_key_24.xml b/app/src/main/res/drawable/ic_baseline_vpn_key_24.xml new file mode 100644 index 0000000..2316df2 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_vpn_key_24.xml @@ -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="M12.65,10C11.83,7.67 9.61,6 7,6c-3.31,0 -6,2.69 -6,6s2.69,6 6,6c2.61,0 4.83,-1.67 5.65,-4H17v4h4v-4h2v-4H12.65zM7,14c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2z"/> +</vector> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8e22ca1..b18e96d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -100,9 +100,9 @@ <string name="pref_config_title_force_background_check">Force Background Check</string> <string name="pref_config_summary_force_background_check">::TODO::</string> - <string name="pref_config_key_optional_sensors_disabled">optional_sensors_disabled</string> - <string name="pref_config_title_optional_sensors_disabled">Disable Optional Sensors</string> - <string name="pref_config_summary_optional_sensors_disabled">Do not detect unnecessary sensor requests (i.e. edge sensors)</string> + <string name="pref_config_key_optional_sensors_enabled">optional_sensors_enabled</string> + <string name="pref_config_title_optional_sensors_enabled">Enable Optional Sensors</string> + <string name="pref_config_summary_optional_sensors_enabled">Allow unnecessary sensor requests (i.e. edge sensors)</string> <string name="pref_config_key_aod_enabled">aod_enabled</string> <string name="pref_config_title_aod_enabled">Always-On-Display Enabled</string> diff --git a/app/src/main/res/xml/main.xml b/app/src/main/res/xml/main.xml index a08daa6..3089d54 100644 --- a/app/src/main/res/xml/main.xml +++ b/app/src/main/res/xml/main.xml @@ -5,75 +5,92 @@ <Preference android:title="@string/pref_profile_title_reset" android:summary="@string/pref_profile_summary_reset" - android:key="@string/pref_profile_key_reset" /> + android:key="@string/pref_profile_key_reset" + android:icon="@drawable/ic_baseline_undo_24" /> <Preference android:title="@string/pref_profile_title_light" android:summary="@string/pref_profile_summary_light" - android:key="@string/pref_profile_key_light" /> + android:key="@string/pref_profile_key_light" + android:icon="@drawable/ic_baseline_api_24" /> <Preference android:title="@string/pref_profile_title_moderate" android:summary="@string/pref_profile_summary_moderate" - android:key="@string/pref_profile_key_moderate" /> + android:key="@string/pref_profile_key_moderate" + android:icon="@drawable/ic_baseline_api_24" /> <Preference android:title="@string/pref_profile_title_high" android:summary="@string/pref_profile_summary_high" - android:key="@string/pref_profile_key_high" /> + android:key="@string/pref_profile_key_high" + android:icon="@drawable/ic_baseline_api_24" /> <Preference android:title="@string/pref_profile_title_extreme" android:summary="@string/pref_profile_summary_extreme" - android:key="@string/pref_profile_key_extreme" /> + android:key="@string/pref_profile_key_extreme" + android:icon="@drawable/ic_baseline_api_24" /> </PreferenceCategory> <PreferenceCategory android:title="@string/category_config"> <SwitchPreference android:title="@string/pref_config_title_advertise_is_enabled" android:summary="@string/pref_config_summary_advertise_is_enabled" - android:key="@string/pref_config_key_advertise_is_enabled" /> + android:key="@string/pref_config_key_advertise_is_enabled" + android:icon="@drawable/ic_baseline_battery_alert_24" /> <SwitchPreference android:title="@string/pref_config_title_datasaver_enabled" android:summary="@string/pref_config_summary_datasaver_enabled" - android:key="@string/pref_config_key_datasaver_enabled" /> + android:key="@string/pref_config_key_datasaver_enabled" + android:icon="@drawable/ic_baseline_data_saver_on_24" /> <SwitchPreference android:title="@string/pref_config_title_enable_night_mode" android:summary="@string/pref_config_summary_enable_night_mode" - android:key="@string/pref_config_key_enable_night_mode" /> + android:key="@string/pref_config_key_enable_night_mode" + android:icon="@drawable/ic_baseline_mode_night_24" /> <SwitchPreference android:title="@string/pref_config_title_launch_boost_enabled" android:summary="@string/pref_config_summary_launch_boost_enabled" - android:key="@string/pref_config_key_launch_boost_enabled" /> + android:key="@string/pref_config_key_launch_boost_enabled" + android:icon="@drawable/ic_baseline_flight_takeoff_24" /> <SwitchPreference android:title="@string/pref_config_title_vibration_enabled" android:summary="@string/pref_config_summary_vibration_enabled" - android:key="@string/pref_config_key_vibration_enabled" /> + android:key="@string/pref_config_key_vibration_enabled" + android:icon="@drawable/ic_baseline_vibration_24" /> <SwitchPreference android:title="@string/pref_config_title_animation_enabled" android:summary="@string/pref_config_summary_animation_enabled" - android:key="@string/pref_config_key_animation_enabled" /> + android:key="@string/pref_config_key_animation_enabled" + android:icon="@drawable/ic_baseline_animation_24" /> <SwitchPreference android:title="@string/pref_config_title_soundtrigger_enabled" android:summary="@string/pref_config_summary_soundtrigger_enabled" - android:key="@string/pref_config_key_soundtrigger_enabled" /> + android:key="@string/pref_config_key_soundtrigger_enabled" + android:icon="@drawable/ic_baseline_volume_up_24" /> <SwitchPreference android:title="@string/pref_config_title_fullbackup_deferred" android:summary="@string/pref_config_summary_fullbackup_deferred" - android:key="@string/pref_config_key_fullbackup_deferred" /> + android:key="@string/pref_config_key_fullbackup_deferred" + android:icon="@drawable/ic_baseline_cloud_upload_24"/> <SwitchPreference android:title="@string/pref_config_title_keyvaluebackup_deferred" android:summary="@string/pref_config_summary_keyvaluebackup_deferred" - android:key="@string/pref_config_key_keyvaluebackup_deferred" /> + android:key="@string/pref_config_key_keyvaluebackup_deferred" + android:icon="@drawable/ic_baseline_vpn_key_24" /> <SwitchPreference android:title="@string/pref_config_title_firewall_enabled" android:summary="@string/pref_config_summary_firewall_enabled" - android:key="@string/pref_config_key_firewall_enabled" /> + android:key="@string/pref_config_key_firewall_enabled" + android:icon="@drawable/ic_baseline_security_24" /> <ListPreference android:title="@string/pref_config_title_gps_mode" android:summary="@string/pref_config_summary_gps_mode" android:key="@string/pref_config_key_gps_mode" android:entries="@array/location_modes_entries" - android:entryValues="@array/location_modes_values" /> + android:entryValues="@array/location_modes_values" + android:icon="@drawable/ic_baseline_location_on_24" /> <SwitchPreference android:title="@string/pref_config_title_adjust_brightness_enabled" android:summary="@string/pref_config_summary_adjust_brightness_enabled" - android:key="@string/pref_config_key_adjust_brightness_enabled" /> + android:key="@string/pref_config_key_adjust_brightness_enabled" + android:icon="@drawable/ic_baseline_brightness_low_24" /> <SeekBarPreference android:title="@string/pref_config_title_adjust_brightness_factor" android:summary="@string/pref_config_summary_adjust_brightness_factor" @@ -84,23 +101,28 @@ <SwitchPreference android:title="@string/pref_config_title_force_all_apps_standby" android:summary="@string/pref_config_summary_force_all_apps_standby" - android:key="@string/pref_config_key_force_all_apps_standby" /> + android:key="@string/pref_config_key_force_all_apps_standby" + android:icon="@drawable/ic_baseline_bed_24" /> <SwitchPreference android:title="@string/pref_config_title_force_background_check" android:summary="@string/pref_config_summary_force_background_check" - android:key="@string/pref_config_key_force_background_check" /> + android:key="@string/pref_config_key_force_background_check" + android:icon="@drawable/ic_baseline_checklist_24" /> <SwitchPreference - android:title="@string/pref_config_title_optional_sensors_disabled" - android:summary="@string/pref_config_summary_optional_sensors_disabled" - android:key="@string/pref_config_key_optional_sensors_disabled" /> + android:title="@string/pref_config_title_optional_sensors_enabled" + android:summary="@string/pref_config_summary_optional_sensors_enabled" + android:key="@string/pref_config_key_optional_sensors_enabled" + android:icon="@drawable/ic_baseline_sensors_24" /> <SwitchPreference android:title="@string/pref_config_title_aod_enabled" android:summary="@string/pref_config_summary_aod_enabled" - android:key="@string/pref_config_key_aod_enabled" /> + android:key="@string/pref_config_key_aod_enabled" + android:icon="@drawable/ic_baseline_aod_24" /> <SwitchPreference android:title="@string/pref_config_title_quick_doze_enabled" android:summary="@string/pref_config_summary_quick_doze_enabled" - android:key="@string/pref_config_key_quick_doze_enabled" /> + android:key="@string/pref_config_key_quick_doze_enabled" + android:icon="@drawable/ic_baseline_snooze_24" /> </PreferenceCategory> <PreferenceCategory android:title="@string/category_about"> <Preference |