Fix bottom sheet show animation

This commit is contained in:
Phillip Thelen 2023-08-24 13:28:37 +02:00
parent 77ba41105c
commit 72f4d650ae

View file

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