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

Commit df7abe10 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Notifying widgets to use dark text when rendered on light wallpaper

Bug: 109954539
Change-Id: Ifab21626a070c35b351ea99ea3f09f3bf2230d19
parent 552b3fe8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ import com.android.launcher3.SimpleOnStylusPressListener;
import com.android.launcher3.StylusEventHelper;
import com.android.launcher3.Utilities;
import com.android.launcher3.dragndrop.DragLayer;
import com.android.launcher3.util.Themes;
import com.android.launcher3.views.BaseDragLayer.TouchCompleteListener;

/**
@@ -97,6 +98,9 @@ public class LauncherAppWidgetHostView extends NavigableAppWidgetHostView
        if (Utilities.ATLEAST_OREO) {
            setExecutor(Utilities.THREAD_POOL_EXECUTOR);
        }
        if (Utilities.ATLEAST_Q && Themes.getAttrBoolean(mLauncher, R.attr.isWorkspaceDarkText)) {
            setOnLightBackground(true);
        }
    }

    @Override