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

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

am 32962b3e: am c65dfef3: am afc76f28: Merge "Use scaled display size in...

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

* commit '32962b3e':
  Use scaled display size in wallpaper constraint.
parents aff6ea95 32962b3e
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -644,11 +644,9 @@ public 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;
    }