summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorxianming wang <mingwax@codeaurora.org>2018-09-07 10:42:34 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2019-01-06 21:56:39 -0800
commitc1a696583dac3da1853f582e4fac6a1eca4cfac5 (patch)
treead4355fce3e51385378f777248327ef3f2fdbdd4 /res/xml
parent31c7c217712785479fa3b7824761cea2cb138284 (diff)
downloadandroid_packages_apps_Snap-c1a696583dac3da1853f582e4fac6a1eca4cfac5.tar.gz
android_packages_apps_Snap-c1a696583dac3da1853f582e4fac6a1eca4cfac5.tar.bz2
android_packages_apps_Snap-c1a696583dac3da1853f582e4fac6a1eca4cfac5.zip
SnapdragonCamera: Add abortCaptures for flush
Add abortCaptures for flush. (1) when exit app. (2) when switch cameraID. (3) start recording before closePreview session. (4) stop recording except enable EIS. CRs-Fixed: 2349737 Change-Id: I4546fbfefa3ffa4bcec688a6b5c6eea24045f232
Diffstat (limited to 'res/xml')
-rwxr-xr-xres/xml/capture_preferences.xml7
-rwxr-xr-xres/xml/setting_menu_preferences.xml9
2 files changed, 16 insertions, 0 deletions
diff --git a/res/xml/capture_preferences.xml b/res/xml/capture_preferences.xml
index cb5b73e2d..51002729e 100755
--- a/res/xml/capture_preferences.xml
+++ b/res/xml/capture_preferences.xml
@@ -469,4 +469,11 @@
camera:entries="@array/pref_camera2_fs2_entries"
camera:entryValues="@array/pref_camera2_fs2_entryvalues" />
+ <ListPreference
+ camera:key="pref_camera2_abort_captures_key"
+ camera:defaultValue="@string/pref_camera2_abort_captures_default"
+ camera:title="@string/pref_camera2_abort_captures_title"
+ camera:entries="@array/pref_camera2_abort_captures_entries"
+ camera:entryValues="@array/pref_camera2_abort_captures_entryvalues" />
+
</PreferenceGroup>
diff --git a/res/xml/setting_menu_preferences.xml b/res/xml/setting_menu_preferences.xml
index 7bdbca9f0..da0a21154 100755
--- a/res/xml/setting_menu_preferences.xml
+++ b/res/xml/setting_menu_preferences.xml
@@ -492,5 +492,14 @@
android:layout="@layout/preference"
android:summary="%s"/>
+ <ListPreference
+ android:key="pref_camera2_abort_captures_key"
+ android:defaultValue="@string/pref_camera2_abort_captures_default"
+ android:title="@string/pref_camera2_abort_captures_title"
+ android:entries="@array/pref_camera2_abort_captures_entries"
+ android:entryValues="@array/pref_camera2_abort_captures_entryvalues"
+ android:layout="@layout/preference"
+ android:summary="%s"/>
+
</PreferenceCategory>
</PreferenceScreen>