Merge pull request #853 from Nephys222/Nephys

fix to the blank space problem of BottomNavBar in Android API<29
This commit is contained in:
Bnyro 2022-07-22 17:03:35 +02:00 committed by GitHub
commit 00c3b6e2da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()