diff --git a/app/src/main/java/com/futo/platformplayer/fragment/mainactivity/main/VideoDetailView.kt b/app/src/main/java/com/futo/platformplayer/fragment/mainactivity/main/VideoDetailView.kt index 076ceae94e1758bb404afbbe49f8a5ab9312f148..51836b9a7e861eb773a377257dea8fa7e1d7f2fa 100644 --- a/app/src/main/java/com/futo/platformplayer/fragment/mainactivity/main/VideoDetailView.kt +++ b/app/src/main/java/com/futo/platformplayer/fragment/mainactivity/main/VideoDetailView.kt @@ -783,9 +783,12 @@ class VideoDetailView : ConstraintLayout { } }, RoundButton(context, R.drawable.ic_download, context.getString(R.string.download), TAG_DOWNLOAD) { - video?.let { - _slideUpOverlay = UISlideOverlays.showDownloadVideoOverlay(it, _overlayContainer, context.contentResolver); - }; + fragment.lifecycleScope.launch(Dispatchers.Main) { + delay(500) + video?.let { + _slideUpOverlay = UISlideOverlays.showDownloadVideoOverlay(it, _overlayContainer, context.contentResolver); + }; + } }, RoundButton(context, R.drawable.ic_share, context.getString(R.string.share), TAG_SHARE) { video?.let {