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

Commit c65dfef3 authored by John Spurlock's avatar John Spurlock Committed by Android Git Automerger
Browse files

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

* commit 'afc76f28':
  Use scaled display size in wallpaper constraint.
parents 4dee4e1c afc76f28
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;
    }