From 3705734d3cdc72e4bb723fb28ed193341a279e18 Mon Sep 17 00:00:00 2001 From: Nephys222 Date: Fri, 22 Jul 2022 17:36:42 +0500 Subject: [PATCH] fix to the blank space problem of BottomNavBar in Android API<29 --- .../main/java/com/github/libretube/activities/MainActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/github/libretube/activities/MainActivity.kt b/app/src/main/java/com/github/libretube/activities/MainActivity.kt index c295ad3a2..b4a01ebc2 100644 --- a/app/src/main/java/com/github/libretube/activities/MainActivity.kt +++ b/app/src/main/java/com/github/libretube/activities/MainActivity.kt @@ -141,6 +141,8 @@ class MainActivity : AppCompatActivity() { } binding.bottomNav.labelVisibilityMode = labelVisibilityMode + binding.bottomNav.setOnApplyWindowInsetsListener(null) + binding.bottomNav.setOnItemSelectedListener { // clear backstack if it's the start fragment if (startFragmentId == it.itemId) navController.backQueue.clear()