mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 12:49:02 +00:00
Fix bottom sheet show animation
This commit is contained in:
parent
77ba41105c
commit
72f4d650ae
1 changed files with 5 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ import androidx.fragment.app.Fragment
|
|||
import com.google.accompanist.systemuicontroller.rememberSystemUiController
|
||||
import com.habitrpg.android.habitica.R
|
||||
import com.habitrpg.android.habitica.ui.theme.HabiticaTheme
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
// Extension for Activity
|
||||
|
|
@ -136,7 +137,10 @@ private fun BottomSheetWrapper(
|
|||
}
|
||||
else -> {
|
||||
isSheetOpened = true
|
||||
modalBottomSheetState.show()
|
||||
coroutineScope.launch {
|
||||
delay(100L)
|
||||
modalBottomSheetState.show()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue