am afc76f28: Merge "Use scaled display size in wallpaper constraint." into klp-dev

* commit 'afc76f28b93f931069bb58c4f9b524d5a99b1604':
  Use scaled display size in wallpaper constraint.
This commit is contained in:
John Spurlock
2013-11-18 12:52:58 -08:00
committed by Android Git Automerger

View File

@@ -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;
}