diff options
author | John Spurlock <jspurlock@google.com> | 2013-11-18 14:14:49 -0500 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2013-11-18 14:14:49 -0500 |
commit | d6e836c4a0ebf3af571c46986d324c1bd599ba95 (patch) | |
tree | c92fc279444cb34ea9ddf834b3450b845d178614 /services/java/com/android | |
parent | 564fb1b8ce4aa603bd0d5b3a077ba27d66e77c32 (diff) | |
download | frameworks_base-d6e836c4a0ebf3af571c46986d324c1bd599ba95.zip frameworks_base-d6e836c4a0ebf3af571c46986d324c1bd599ba95.tar.gz frameworks_base-d6e836c4a0ebf3af571c46986d324c1bd599ba95.tar.bz2 |
Use scaled display size in wallpaper constraint.
Bug:11596190
Change-Id: Icc81beeea2e71144c2e5330b047e4781a23d7449
Diffstat (limited to 'services/java/com/android')
-rw-r--r-- | services/java/com/android/server/WallpaperManagerService.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/services/java/com/android/server/WallpaperManagerService.java b/services/java/com/android/server/WallpaperManagerService.java index e25470c..e6b6b93 100644 --- a/services/java/com/android/server/WallpaperManagerService.java +++ b/services/java/com/android/server/WallpaperManagerService.java @@ -640,11 +640,9 @@ class WallpaperManagerService extends IWallpaperManager.Stub { private Point getDefaultDisplaySize() { Point p = new Point(); - try { - mIWindowManager.getInitialDisplaySize(Display.DEFAULT_DISPLAY, p); - } catch (RemoteException e) { - // not remote - } + WindowManager wm = (WindowManager)mContext.getSystemService(Context.WINDOW_SERVICE); + Display d = wm.getDefaultDisplay(); + d.getRealSize(p); return p; } |