summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2016-08-10 12:09:28 +0200
committerJorim Jaggi <jjaggi@google.com>2016-08-11 15:58:17 +0200
commite230815d84309f0f4c8db576eb5e6bf467867ef7 (patch)
tree9559e6ca2e99d5071b497c3235982d8b774efd08 /src
parent1fd4c6ea0673321971aa408623212939a56d0789 (diff)
downloadandroid_packages_wallpapers_LivePicker-e230815d84309f0f4c8db576eb5e6bf467867ef7.zip
android_packages_wallpapers_LivePicker-e230815d84309f0f4c8db576eb5e6bf467867ef7.tar.gz
android_packages_wallpapers_LivePicker-e230815d84309f0f4c8db576eb5e6bf467867ef7.tar.bz2
Use proper action bar item background
Bug: 22007160 Change-Id: I6b99f818b71addbccce09225e20932339fd88449
Diffstat (limited to 'src')
-rw-r--r--src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
index bebb422..f5bfce9 100644
--- a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
+++ b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
@@ -247,6 +247,8 @@ public class LiveWallpaperPreview extends Activity {
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_preview, menu);
menu.findItem(R.id.configure).setVisible(mSettings != null);
+ menu.findItem(R.id.set_wallpaper).getActionView().setOnClickListener(
+ this::setLiveWallpaper);
return super.onCreateOptionsMenu(menu);
}