mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Fix transparent background when switching apps in multi-window
This commit is contained in:
parent
cc9b1aeaab
commit
3143797b55
12
app/src/main/res/values-v24/styles.xml
Normal file
12
app/src/main/res/values-v24/styles.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<resources>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Use a black background to avoid the transparent background when switching apps.
|
||||||
|
android:windowBackgroundFallback is supposed to do this, but it wasn't working for
|
||||||
|
me as of Android 7.1
|
||||||
|
-->
|
||||||
|
<style name="StreamBaseTheme" parent="AppBaseTheme">
|
||||||
|
<item name="android:windowBackground">@android:color/black</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</resources>
|
@ -22,14 +22,16 @@
|
|||||||
<item name="android:windowNoTitle">true</item>
|
<item name="android:windowNoTitle">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- Stream activity theme -->
|
<style name="StreamBaseTheme" parent="AppBaseTheme">
|
||||||
<style name="StreamTheme" parent="AppBaseTheme">
|
|
||||||
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
|
|
||||||
<item name="android:windowActionBar">false</item>
|
|
||||||
<item name="android:windowNoTitle">true</item>
|
|
||||||
|
|
||||||
<!-- Transparent streaming background to avoid extra overdraw -->
|
<!-- Transparent streaming background to avoid extra overdraw -->
|
||||||
<item name="android:windowBackground">@android:color/transparent</item>
|
<item name="android:windowBackground">@android:color/transparent</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<!-- Stream activity theme -->
|
||||||
|
<style name="StreamTheme" parent="StreamBaseTheme">
|
||||||
|
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
|
||||||
|
<item name="android:windowActionBar">false</item>
|
||||||
|
<item name="android:windowNoTitle">true</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user