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

Commit e1e326ec authored by helencheuk's avatar helencheuk
Browse files

[Contextual Edu] Show dialog with correct theme in light and dark modes

Found an issue that the edu dialog is always in dark theme.
This change provides the correct theme for light and dark modes.

Bug: 369800039
Test: Manual, checked the color of dialog is right in both light and dark themes
Flag: com.android.systemui.keyboard_touchpad_contextual_education
Change-Id: Ifa313a4bb28716cca5b1f12c12fbcec6d7e6b955
parent ada6afab
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -64,4 +64,9 @@
        <item name="android:windowLightNavigationBar">false</item>
    </style>

    <style name="ContextualEduDialog" parent="@android:style/Theme.DeviceDefault.Dialog.NoActionBar">
        <!-- To make the dialog wrap to content when the education text is short -->
        <item name="windowMinWidthMajor">0%</item>
        <item name="windowMinWidthMinor">0%</item>
    </style>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -1721,7 +1721,7 @@
        <item name="android:windowLightNavigationBar">true</item>
    </style>

    <style name="ContextualEduDialog" parent="@android:style/Theme.DeviceDefault.Dialog.NoActionBar">
    <style name="ContextualEduDialog" parent="@android:style/Theme.DeviceDefault.Light.Dialog.NoActionBar">
        <!-- To make the dialog wrap to content when the education text is short -->
        <item name="windowMinWidthMajor">0%</item>
        <item name="windowMinWidthMinor">0%</item>