diff options
-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; } |