mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-16 22:01:14 +00:00
Fix transparent background when switching apps in multi-window
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user