Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afc76f28 authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

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

parents 35fb6cdf d6e836c4
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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;
    }