Fixed BottomNavigation crashes
This commit is contained in:
parent
29671a374e
commit
097d646635
2 changed files with 6 additions and 1 deletions
|
@ -14,7 +14,7 @@ android {
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
|
|
||||||
applicationId "code.name.monkey.retromusic"
|
applicationId "code.name.monkey.retromusic"
|
||||||
versionCode 10579
|
versionCode 10584
|
||||||
versionName '5.8.4'
|
versionName '5.8.4'
|
||||||
|
|
||||||
buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"")
|
buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"")
|
||||||
|
|
|
@ -119,6 +119,11 @@ fun BottomNavigationView.show() {
|
||||||
fun BottomNavigationView.hide() {
|
fun BottomNavigationView.hide() {
|
||||||
if (isGone) return
|
if (isGone) return
|
||||||
|
|
||||||
|
if (!isLaidOut) {
|
||||||
|
isGone = true
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
val drawable = BitmapDrawable(context.resources, drawToBitmap())
|
val drawable = BitmapDrawable(context.resources, drawToBitmap())
|
||||||
val parent = parent as ViewGroup
|
val parent = parent as ViewGroup
|
||||||
drawable.setBounds(left, top, right, bottom)
|
drawable.setBounds(left, top, right, bottom)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue