diff options
author | Michael Bestas <mikeioannina@gmail.com> | 2014-01-20 20:40:32 +0200 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2018-01-26 00:53:20 +0100 |
commit | 7132454a49c67c1d8e27de20169249bd14790bea (patch) | |
tree | 507116a28a780a340b83f7421ad97779eecc27be /res | |
parent | dce40170eca239b2232c2aa2d5a4489771fdac2b (diff) | |
download | android_packages_apps_Snap-7132454a49c67c1d8e27de20169249bd14790bea.tar.gz android_packages_apps_Snap-7132454a49c67c1d8e27de20169249bd14790bea.tar.bz2 android_packages_apps_Snap-7132454a49c67c1d8e27de20169249bd14790bea.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 | ||||
-rwxr-xr-x | res/xml/camera_preferences.xml | 6 | ||||
-rw-r--r-- | res/xml/video_preferences.xml | 6 |
4 files changed, 43 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 6b5dbe53d..ea0473bfb 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -82,4 +82,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 d380a27be..e5596e9e6 100755 --- a/res/xml/camera_preferences.xml +++ b/res/xml/camera_preferences.xml @@ -416,4 +416,10 @@ camera:entries="@array/pref_camera_zoom_entries" camera:entryValues="@array/pref_camera_zoom_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 9a42a9b5f..0af00f659 100644 --- a/res/xml/video_preferences.xml +++ b/res/xml/video_preferences.xml @@ -190,4 +190,10 @@ camera:title="@string/pref_camera_zoom_title" camera:entries="@array/pref_camera_zoom_entries" camera:entryValues="@array/pref_camera_zoom_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> |