[Android] Fix Toolbar elevation in AboutActivity
Nicolas Pomepuy
git at videolan.org
Tue Mar 15 10:56:57 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Mar 11 11:29:06 2022 +0100| [5a4ebd7c468ef5e2e7e87d4bd48e2abc01dd857d] | committer: Duncan McNamara
Fix Toolbar elevation in AboutActivity
> https://code.videolan.org/videolan/vlc-android/commit/5a4ebd7c468ef5e2e7e87d4bd48e2abc01dd857d
---
.../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 28661e6b4..1e7f06f0d 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
@@ -169,7 +169,7 @@ open class AudioPlayerContainerActivity : BaseActivity(), KeycodeListener {
bottomBar = findViewById(R.id.navigation)
tabLayout?.viewTreeObserver?.addOnGlobalLayoutListener {
//add a shadow if there are tabs
- val needToElevate = (tabLayout?.layoutParams?.height != 0) || navigationRail?.visibility != View.GONE
+ val needToElevate = (tabLayout?.layoutParams?.height != 0) || navigationRail?.visibility ?: View.GONE != View.GONE
if (AndroidUtil.isLolliPopOrLater) appBarLayout.elevation = if (needToElevate) 8.dp.toFloat() else 0.dp.toFloat()
}
audioPlayerContainer = findViewById(R.id.audio_player_container)
More information about the Android
mailing list