summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2014-09-08 18:32:10 (GMT)
committerDianne Hackborn <hackbod@google.com>2014-09-08 18:32:10 (GMT)
commit06f5f007e4fe40834c6f9fcc52f2e050d37d231f (patch)
treeb1463ab1fd1b2a557cfd08ef289bff12f87570ae
parente0cea71f78e193ac20612ada5afe511ebbf3536d (diff)
downloadandroid_packages_wallpapers_LivePicker-06f5f007e4fe40834c6f9fcc52f2e050d37d231f.zip
android_packages_wallpapers_LivePicker-06f5f007e4fe40834c6f9fcc52f2e050d37d231f.tar.gz
android_packages_wallpapers_LivePicker-06f5f007e4fe40834c6f9fcc52f2e050d37d231f.tar.bz2
Track framework changes.
Change-Id: Iddfa0fa4ea852bf9794c115313ae9068e684ae49
-rw-r--r--src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
index 55e0d24..72ba27a 100644
--- a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
+++ b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
@@ -20,6 +20,7 @@ import android.app.Activity;
import android.app.WallpaperManager;
import android.app.WallpaperInfo;
import android.app.Dialog;
+import android.graphics.Rect;
import android.service.wallpaper.IWallpaperConnection;
import android.service.wallpaper.IWallpaperService;
import android.service.wallpaper.IWallpaperEngine;
@@ -269,7 +270,8 @@ public class LiveWallpaperPreview extends Activity {
final View root = view.getRootView();
mService.attach(this, view.getWindowToken(),
WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY,
- true, root.getWidth(), root.getHeight());
+ true, root.getWidth(), root.getHeight(),
+ new Rect(0, 0, 0, 0));
} catch (RemoteException e) {
Log.w(LOG_TAG, "Failed attaching wallpaper; clearing", e);
}