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

Commit 76eeaba3 authored by Richard MacGregor's avatar Richard MacGregor
Browse files

[EXPD] Fix theme bridge material theme parent

Base.ThemeOverlay.MaterialComponents.PlatformBridge and
ThemeOverlay.MaterialComponents.PlatformBridge use incorrect parent
theme, fix so they use MaterialComponent base theme parent

Bug: 406257542
Flag: EXEMPT bugfix
Relnote: N/A
Test: atest CtsPermissionUiTestCases
Change-Id: I485ee003e791ac1962bf62af23a17cb4a162bd01
parent 779598b8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -171,6 +171,11 @@

        <!-- END Base.V14.Theme.MaterialComponents -->
    </style>
    <!--
      ~ NOTE: Base.ThemeOverlay.MaterialComponents.PlatformBridge and
      ~ ThemeOverlay.MaterialComponents.PlatformBridge have the wrong parent specified, and is fixed
      ~ in values-v36/themes_bridge.xml in order to avoid compaitilibility issue with OEM customization.
      -->
    <style name="Base.ThemeOverlay.MaterialComponents.PlatformBridge" parent="Base.V31.ThemeOverlay.AppCompat.PlatformBridge" />
    <style name="ThemeOverlay.MaterialComponents.PlatformBridge" parent="Base.ThemeOverlay.AppCompat.PlatformBridge" />
</resources>
+29 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<!--
  Copyright (C) 2025 The Android Open Source Project

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<!-- See appcompat/appcompat/THEMES for the theme structure. -->
<resources>
    <!--
      ~ Bridge theme overlay to simulate AppCompat themes based on a platform theme.
      ~ Only non-widget attributes are included here since we should still use the platform widgets.
      ~ Only public theme attributes (as in platform public-final.xml) can be referenced here since
      ~ this is used in modules.
      -->
    <style name="Base.ThemeOverlay.MaterialComponents.PlatformBridge" parent="Base.V31.ThemeOverlay.MaterialComponents.PlatformBridge" />
    <style name="ThemeOverlay.MaterialComponents.PlatformBridge" parent="Base.ThemeOverlay.MaterialComponents.PlatformBridge" />
</resources>