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

Commit d6e836c4 authored by John Spurlock's avatar John Spurlock
Browse files

Use scaled display size in wallpaper constraint.

Bug:11596190
Change-Id: Icc81beeea2e71144c2e5330b047e4781a23d7449
parent 564fb1b8
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;
    }