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

Commit d94a7f97 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

Merge "Change overlay on background thread."

parents 775b8399 9bd458c8
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -4515,12 +4515,14 @@ public class StatusBar extends SystemUI implements DemoMode,
        final boolean useDarkTheme = systemColors != null
                && (systemColors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_THEME) != 0;
        if (isUsingDarkTheme() != useDarkTheme) {
            mUiOffloadThread.submit(() -> {
                try {
                    mOverlayManager.setEnabled("com.android.systemui.theme.dark",
                            useDarkTheme, mCurrentUserId);
                } catch (RemoteException e) {
                    Log.w(TAG, "Can't change theme", e);
                }
            });
        }

        // Lock wallpaper defines the color of the majority of the views, hence we'll use it