Fix transparent background when switching apps in multi-window

This commit is contained in:
Cameron Gutman 2016-11-22 23:18:55 -08:00
parent cc9b1aeaab
commit 3143797b55
2 changed files with 20 additions and 6 deletions

View 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>

View File

@ -22,14 +22,16 @@
<item name="android:windowNoTitle">true</item>
</style>
<!-- Stream activity theme -->
<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>
<style name="StreamBaseTheme" parent="AppBaseTheme">
<!-- Transparent streaming background to avoid extra overdraw -->
<item name="android:windowBackground">@android:color/transparent</item>
</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>