diff options
author | Michael Bestas <mikeioannina@gmail.com> | 2014-01-20 20:40:32 +0200 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-11-02 12:22:26 -0700 |
commit | 85c301a49187a33e766766591a1a1de97377608a (patch) | |
tree | 1c41846bd79618b34f9851c59dc176714ad8be51 /res | |
parent | 032c6038f5206de8ea28ecaebe4c62b04367f91e (diff) | |
download | android_packages_apps_Snap-85c301a49187a33e766766591a1a1de97377608a.tar.gz android_packages_apps_Snap-85c301a49187a33e766766591a1a1de97377608a.tar.bz2 android_packages_apps_Snap-85c301a49187a33e766766591a1a1de97377608a.zip |
Camera: Powerkey shutter (2/2)
Ported from cm-10.1
Including cm-10.1 camera commit:
aa4ae80a41fbab763891c5ef6d67a9e5b4bb981b Don't mess around with pref local ID for power shutter initialization.
Includes http://review.cyanogenmod.org/56986
[mikeioannina]: Updates for L
Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
Change-Id: I0992baa558eefd306d00fbece59cb5c512d9448b
Diffstat (limited to 'res')
-rw-r--r-- | res/values/cm_arrays.xml | 27 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 4 | ||||
-rw-r--r-- | res/xml/camera_preferences.xml | 7 | ||||
-rw-r--r-- | res/xml/video_preferences.xml | 6 |
4 files changed, 44 insertions, 0 deletions
diff --git a/res/values/cm_arrays.xml b/res/values/cm_arrays.xml new file mode 100644 index 000000000..b308c083e --- /dev/null +++ b/res/values/cm_arrays.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013-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. +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string-array name="pref_switch_entryvalues" translatable="false"> + <item>off</item> + <item>on</item> + </string-array> + + <array name="pref_switch_entries" translatable="false"> + <item>@string/setting_off</item> + <item>@string/setting_on</item> + </array> +</resources> diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 2bef937e1..fbd79a019 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -141,4 +141,8 @@ <!-- Red eye flash mode title --> <string name="pref_camera_flashmode_entry_redeye">Red eye</string> <string name="pref_camera_flashmode_label_redeye">RED EYE</string> + + <!-- Power shutter --> + <string name="pref_camera_power_shutter_title">Power shutter</string> + <string name="pref_camera_power_shutter_default" translatable="false">off</string> </resources> diff --git a/res/xml/camera_preferences.xml b/res/xml/camera_preferences.xml index 742c09d33..d6bed124f 100644 --- a/res/xml/camera_preferences.xml +++ b/res/xml/camera_preferences.xml @@ -386,4 +386,11 @@ camera:title="@string/pref_camera2_camera2_title" camera:entries="@array/pref_camera2_camera2_entries" camera:entryValues="@array/pref_camera2_camera2_entryvalues" /> + + <ListPreference + camera:key="pref_power_shutter" + camera:defaultValue="@string/pref_camera_power_shutter_default" + camera:title="@string/pref_camera_power_shutter_title" + camera:entries="@array/pref_switch_entries" + camera:entryValues="@array/pref_switch_entryvalues" /> </PreferenceGroup> diff --git a/res/xml/video_preferences.xml b/res/xml/video_preferences.xml index 6eba729d9..69d195f4e 100644 --- a/res/xml/video_preferences.xml +++ b/res/xml/video_preferences.xml @@ -184,4 +184,10 @@ camera:title="@string/pref_camera_video_rotation_title" camera:entries="@array/pref_camera_video_rotation_entries" camera:entryValues="@array/pref_camera_video_rotation_entryvalues" /> + <ListPreference + camera:key="pref_power_shutter" + camera:defaultValue="@string/pref_camera_power_shutter_default" + camera:title="@string/pref_camera_power_shutter_title" + camera:entries="@array/pref_switch_entries" + camera:entryValues="@array/pref_switch_entryvalues" /> </PreferenceGroup> |