Merge pull request #1366 from prathameshmm02/dev

Fixed BottomNavigation crashes #1357 #1353
This commit is contained in:
Daksh P. Jain 2022-05-26 16:23:01 +05:30 committed by GitHub
commit 85cf3738e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -14,7 +14,7 @@ android {
vectorDrawables.useSupportLibrary = true
applicationId "code.name.monkey.retromusic"
versionCode 10579
versionCode 10584
versionName '5.8.4'
buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"")

View file

@ -119,6 +119,11 @@ fun BottomNavigationView.show() {
fun BottomNavigationView.hide() {
if (isGone) return
if (!isLaidOut) {
isGone = true
return
}
val drawable = BitmapDrawable(context.resources, drawToBitmap())
val parent = parent as ViewGroup
drawable.setBounds(left, top, right, bottom)