[Android] Prevent displaying content under the system bars for API < 21

Nicolas Pomepuy git at videolan.org
Tue Mar 22 12:22:13 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Mar 22 10:02:01 2022 +0100| [3093084c0f6ef41b7b5bad25afb1c37ed26fc565] | committer: Nicolas Pomepuy

Prevent displaying content under the system bars for API < 21

> https://code.videolan.org/videolan/vlc-android/commit/3093084c0f6ef41b7b5bad25afb1c37ed26fc565
---

 .../src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
index 0666d6458..f0378d1ca 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
@@ -141,7 +141,7 @@ open class AudioPlayerContainerActivity : BaseActivity(), KeycodeListener {
             savedInstanceState.getIntegerArrayList(SHOWN_TIPS)?.let { shownTips.addAll(it) }
         }
         super.onCreate(savedInstanceState)
-        WindowCompat.setDecorFitsSystemWindows(window, false)
+        if (AndroidUtil.isLolliPopOrLater) WindowCompat.setDecorFitsSystemWindows(window, false)
 
         volumeControlStream = AudioManager.STREAM_MUSIC
         registerLiveData()



More information about the Android mailing list