summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorKunhung Li <kunhungli@google.com>2019-01-07 15:12:27 +0800
committerKunhung Li <kunhungli@google.com>2019-01-15 17:19:55 +0800
commit9f295e7a7ef9ca17d42abf500a6d24fe37aa3990 (patch)
treecd0896f3b57c4d854ad98767e570dbdb78b5b383 /res
parentea70a99ad5618f34b5b7721f0809e4662a87131b (diff)
downloadandroid_packages_wallpapers_LivePicker-9f295e7a7ef9ca17d42abf500a6d24fe37aa3990.tar.gz
android_packages_wallpapers_LivePicker-9f295e7a7ef9ca17d42abf500a6d24fe37aa3990.tar.bz2
android_packages_wallpapers_LivePicker-9f295e7a7ef9ca17d42abf500a6d24fe37aa3990.zip
Delete feature for LivePicker
Provide a delete function in menu item that can notify delete info to wallpaper package then finish back to the requesting activity. Bug: 122094510 Test: Manual Change-Id: I9e7303ee9cbbae0a7987b4b8848a1aa3293c72b3
Diffstat (limited to 'res')
-rw-r--r--res/drawable/ic_delete_white_24dp.xml27
-rw-r--r--res/menu/menu_preview.xml6
-rw-r--r--res/values/strings.xml2
3 files changed, 35 insertions, 0 deletions
diff --git a/res/drawable/ic_delete_white_24dp.xml b/res/drawable/ic_delete_white_24dp.xml
new file mode 100644
index 0000000..ca3b43f
--- /dev/null
+++ b/res/drawable/ic_delete_white_24dp.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2018 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.
+-->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24.0"
+ android:viewportHeight="24.0"
+ android:tint="?attr/colorControlNormal">
+
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M15,4L15,3L9,3v1L4,4v2h1v13c0,1.1 0.9,2 2,2h10c1.1,0 2,-0.9 2,-2L19,6h1L20,4h-5zM17,19L7,19L7,6h10v13zM9,8h2v9L9,17zM13,8h2v9h-2z"/>
+
+</vector> \ No newline at end of file
diff --git a/res/menu/menu_preview.xml b/res/menu/menu_preview.xml
index 471e506..87d17c9 100644
--- a/res/menu/menu_preview.xml
+++ b/res/menu/menu_preview.xml
@@ -28,4 +28,10 @@
android:showAsAction="always|withText"
android:actionLayout="@layout/set_wallpaper_action"/>
+ <item
+ android:id="@+id/delete_wallpaper"
+ android:icon="@drawable/ic_delete_white_24dp"
+ android:showAsAction="ifRoom"
+ android:title="@string/delete_live_wallpaper"/>
+
</menu>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 99e48e6..0206a43 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -31,6 +31,8 @@
<string name="live_wallpaper_preview_title">Live wallpaper preview</string>
<!-- List item for configuring the current wallpaper -->
<string name="configure_wallpaper">Settingsā€¦</string>
+ <!-- List item for deleting the current wallpaper -->
+ <string name="delete_live_wallpaper">Delete</string>
<!-- Button label on Wallpaper Gallery screen; user selects this button to set a specific wallpaper -->
<string name="wallpaper_instructions">Set wallpaper</string>
<!-- Warning message, no live wallpapers available. -->