summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorKunhung Li <kunhungli@google.com>2019-01-21 10:15:53 +0800
committerKunhung Li <kunhungli@google.com>2019-01-31 02:28:42 +0000
commit61b0144879aac5608718f1618da637961d451824 (patch)
tree3c660a28756d01d3c08e8bc4302600f60eb018d0 /res
parent7b4953e707451313fb225a70a01dd3357c7ff675 (diff)
downloadandroid_packages_wallpapers_LivePicker-61b0144879aac5608718f1618da637961d451824.tar.gz
android_packages_wallpapers_LivePicker-61b0144879aac5608718f1618da637961d451824.tar.bz2
android_packages_wallpapers_LivePicker-61b0144879aac5608718f1618da637961d451824.zip
Show comfirm dialog before deleting a wallpaper
Bug: 122505782 Test: Manual Change-Id: I013df1e3d8e33268f382cb237447d8ed2bd8a0a6
Diffstat (limited to 'res')
-rw-r--r--res/values-night/styles.xml22
-rw-r--r--res/values/strings.xml3
-rw-r--r--res/values/styles.xml2
3 files changed, 27 insertions, 0 deletions
diff --git a/res/values-night/styles.xml b/res/values-night/styles.xml
new file mode 100644
index 0000000..30a4207
--- /dev/null
+++ b/res/values-night/styles.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+* Copyright (C) 2019 The Android Open Source 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>
+ <style name="AlertDialogStyle" parent="@android:style/Theme.DeviceDefault.Dialog.Alert"/>
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 0247731..2112323 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -58,4 +58,7 @@
<!-- Label for the 'Customize' tab of view pager in wallpaper preview activity.
[CHAR_LIMIT=25] -->
<string name="tab_customize">Customize</string>
+
+ <!-- Confirmation dialog. Shown after user selects to delete one wallpaper. [CHAR LIMIT=NONE] -->
+ <string name="delete_wallpaper_confirmation">Delete this wallpaper?</string>
</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 48f50bc..8020103 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -46,6 +46,8 @@
<item name="android:textAllCaps">false</item>
</style>
+ <style name="AlertDialogStyle" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"/>
+
<style name="LivePicker.Button.Colored"
parent="@android:style/Widget.DeviceDefault.Button.Colored">
<item name="android:textColor">?android:textColorPrimary</item>