diff options
author | Altaf-Mahdi <altaf.mahdi@gmail.com> | 2016-04-24 23:01:57 +0100 |
---|---|---|
committer | davidevinavil <davidevinavil@gmail.com> | 2017-01-21 18:31:37 +0100 |
commit | 0e5853f97bd5a865d66dcb058aa5a18b95ea6f0d (patch) | |
tree | 639a7e7ca492774970fda116381721f986a2992b /doze/res/xml | |
parent | 68b7ddae6f2a75239b218141a28022c3eab99be5 (diff) |
z2_plus: Doze improvements
* restructure the app
* add a tilt sensor from hammerhead-caf with an option to enable/disable
* add a one time dialog on first start to help users understand how the app works
* remove proximity wake up option and add an option to enable the sensors as soon as the screen turns off
* adjust and add new doze configs
* squashed translations
Change-Id: Ia9d9a807d6c4f1a80a2ba8780e7486560f9a1d87
Diffstat (limited to 'doze/res/xml')
-rw-r--r-- | doze/res/xml/doze_settings.xml | 72 | ||||
-rw-r--r-- | doze/res/xml/gesture_panel.xml | 53 |
2 files changed, 72 insertions, 53 deletions
diff --git a/doze/res/xml/doze_settings.xml b/doze/res/xml/doze_settings.xml new file mode 100644 index 0000000..09e27b5 --- /dev/null +++ b/doze/res/xml/doze_settings.xml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License" + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> + + <SwitchPreference + android:key="ambient_display" + android:defaultValue="true" + android:title="@string/ambient_display_title" + android:summary="@string/ambient_display_summary" /> + + <PreferenceCategory + android:key="tilt_sensor" + android:title="@string/tilt_sensor_title" > + + <SwitchPreference + android:key="pick_up" + android:defaultValue="false" + android:title="@string/pick_up_title" + android:summary="@string/pick_up_summary" + android:dependency="ambient_display" /> + + <SwitchPreference + android:key="tilt_always" + android:defaultValue="false" + android:title="@string/always_enabled_title" + android:summary="@string/always_enabled_summary" + android:dependency="ambient_display" /> + + </PreferenceCategory> + + <PreferenceCategory + android:key="priximity_sensor" + android:title="@string/priximity_sensor_title" > + + <SwitchPreference + android:key="gesture_hand_wave" + android:defaultValue="false" + android:title="@string/hand_wave_gesture_title" + android:summary="@string/hand_wave_gesture_summary" + android:dependency="ambient_display" /> + + <SwitchPreference + android:key="gesture_pocket" + android:defaultValue="false" + android:title="@string/pocket_gesture_title" + android:summary="@string/pocket_gesture_summary" + android:dependency="ambient_display" /> + + <SwitchPreference + android:key="proximity_always" + android:defaultValue="false" + android:title="@string/always_enabled_title" + android:summary="@string/always_enabled_summary" + android:dependency="ambient_display" /> + + </PreferenceCategory> + +</PreferenceScreen> diff --git a/doze/res/xml/gesture_panel.xml b/doze/res/xml/gesture_panel.xml deleted file mode 100644 index 40a017c..0000000 --- a/doze/res/xml/gesture_panel.xml +++ /dev/null @@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2015 The CyanogenMod Project - - Licensed under the Apache License, Version 2.0 (the "License" - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> - - <PreferenceCategory - android:key="ambient_display_key" - android:title="@string/ambient_display_title" > - - <SwitchPreference - android:key="ambient_display_enable" - android:defaultValue="true" - android:title="@string/ambient_display_enable_title" - android:summary="@string/ambient_display_enable_summary" /> - - <SwitchPreference - android:key="gesture_hand_wave" - android:defaultValue="false" - android:title="@string/hand_wave_gesture_title" - android:summary="@string/hand_wave_gesture_summary" /> - - <SwitchPreference - android:key="gesture_pocket" - android:defaultValue="false" - android:title="@string/pocket_gesture_title" - android:summary="@string/pocket_gesture_summary" /> - </PreferenceCategory> - - <PreferenceCategory - android:key="proximity_wake_key" - android:title="@string/proximity_wake_title" > - - <SwitchPreference - android:key="proximity_wake_enable" - android:defaultValue="false" - android:title="@string/proximity_wake_enable_title" - android:summary="@string/proximity_wake_enable_summary" /> - </PreferenceCategory> - -</PreferenceScreen>
\ No newline at end of file |