* commit 'c65dfef3f5ee07883446be0e6907f15fe457da9d': Use scaled display size in wallpaper constraint.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user