Merge "Use scaled display size in wallpaper constraint." into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
afc76f28b9
@@ -640,11 +640,9 @@ class WallpaperManagerService extends IWallpaperManager.Stub {
|
|||||||
|
|
||||||
private Point getDefaultDisplaySize() {
|
private Point getDefaultDisplaySize() {
|
||||||
Point p = new Point();
|
Point p = new Point();
|
||||||
try {
|
WindowManager wm = (WindowManager)mContext.getSystemService(Context.WINDOW_SERVICE);
|
||||||
mIWindowManager.getInitialDisplaySize(Display.DEFAULT_DISPLAY, p);
|
Display d = wm.getDefaultDisplay();
|
||||||
} catch (RemoteException e) {
|
d.getRealSize(p);
|
||||||
// not remote
|
|
||||||
}
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user