summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2016-03-30 14:17:15 -0700
committerChristopher Tate <ctate@google.com>2016-03-30 14:17:15 -0700
commit5cdb1080f7e040c2657b406d78b1d3d38596ab67 (patch)
tree2126b9d7b922a2a9051c17ecb93adb94f8b30cac
parent70346f97779aa145a4ccc6b96b595e58afa57d0d (diff)
downloadandroid_packages_wallpapers_LivePicker-5cdb1080f7e040c2657b406d78b1d3d38596ab67.tar.gz
android_packages_wallpapers_LivePicker-5cdb1080f7e040c2657b406d78b1d3d38596ab67.tar.bz2
android_packages_wallpapers_LivePicker-5cdb1080f7e040c2657b406d78b1d3d38596ab67.zip
Track in-progress wallpaper API changes
FLAG_*, not FLAG_SET_* Bug 27365822 Change-Id: I60cb14560c5fb359639788b39f60096f77ad85ab
-rw-r--r--src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
index 8eae63c..85f241f 100644
--- a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
+++ b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
@@ -105,7 +105,7 @@ public class LiveWallpaperPreview extends Activity {
}
public void setLiveWallpaper(final View v) {
- if (mWallpaperManager.getWallpaperId(WallpaperManager.FLAG_SET_LOCK) < 0) {
+ if (mWallpaperManager.getWallpaperId(WallpaperManager.FLAG_LOCK) < 0) {
// The lock screen does not have a wallpaper, so no need to prompt; can only set both.
try {
setLiveWallpaper(v.getRootView().getWindowToken());
@@ -126,7 +126,7 @@ public class LiveWallpaperPreview extends Activity {
if (which == 1) {
// "Home screen and lock screen"; clear the lock screen so it
// shows through to the live wallpaper on home.
- mWallpaperManager.clear(WallpaperManager.FLAG_SET_LOCK);
+ mWallpaperManager.clear(WallpaperManager.FLAG_LOCK);
}
setResult(RESULT_OK);
} catch (RuntimeException e) {