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

Commit 77796a2d authored by Candice's avatar Candice
Browse files

setTheme for the accessibility menu

setTheme for the window context used by the accessibility menu

Bug: 407669662
Test: Manually toggle the feature and check the appearance
Test: Manually. add screenshot in the bug
Flag: android.view.accessibility.force_invert_color
Change-Id: I23959e0e45394c31d1e528011a0bf2e9d0390f1a
parent da67d1b9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -142,6 +142,7 @@ public class A11yMenuOverlayLayout {
        final Display display = mDisplayManager.getDisplay(DEFAULT_DISPLAY);
        final Context uiContext = mService.createWindowContext(
                display, TYPE_ACCESSIBILITY_OVERLAY, /* options= */null);
        uiContext.setTheme(R.style.ServiceTheme);
        final WindowManager windowManager = uiContext.getSystemService(WindowManager.class);
        mLayout = new A11yMenuFrameLayout(uiContext);
        updateLayoutPosition(uiContext);