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

Commit 29f4a835 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊 Committed by Abhishek Aggarwal
Browse files

feat: Restart launcher on density change

parent 24923bf7
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -205,6 +205,10 @@ public class DisplayController implements DisplayListener, ComponentCallbacks, S
                || !mInfo.mScreenSizeDp.equals(
                        new PortraitSize(config.screenHeightDp, config.screenWidthDp))) {
            handleInfoChange(display);

            // Restart launcher
            LauncherAppMonitor.getInstance(mContext).getLauncher().getModel().forceReload();
            System.exit(0);
        }
    }