Skip to content

Commit

Permalink
Makes Android 8.1+ translucent Activities to perform as they were bef…
Browse files Browse the repository at this point in the history
…ore the Android 8 workaround fix (uplift to 1.50.x) (#18039)

Uplift of #18029 (squashed) to release
  • Loading branch information
brave-builds authored Apr 14, 2023
1 parent 813aa2a commit 9a9b3b9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions android/brave_java_resources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,7 @@ brave_java_resources = [
"java/res/values-sw600dp/brave_dimens.xml",
"java/res/values-v21/brave_styles.xml",
"java/res/values-v26/brave_styles.xml",
"java/res/values-v27/brave_styles.xml",
"java/res/values/array.xml",
"java/res/values/brave_attrs.xml",
"java/res/values/brave_colors.xml",
Expand Down
24 changes: 24 additions & 0 deletions android/java/res/values-v27/brave_styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2023 The Brave Authors. All rights reserved.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.
-->

<resources>
<style name="BraveTranslucent" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@color/translucent_activity_background_color</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:backgroundDimEnabled">false</item>
</style>

<style name="BraveTranslucentMaterial" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@color/translucent_activity_background_color</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
</resources>

0 comments on commit 9a9b3b9

Please sign in to comment.