From 06f2660134e283f7d7b8a3db159380863577e4ae Mon Sep 17 00:00:00 2001 From: Max Jakobitsch Date: Sat, 1 Mar 2025 20:17:41 +0100 Subject: [PATCH] Unfocus cut time textfields on submit --- .../ytdl/ui/downloadcard/CutVideoBottomSheetDialog.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/deniscerri/ytdl/ui/downloadcard/CutVideoBottomSheetDialog.kt b/app/src/main/java/com/deniscerri/ytdl/ui/downloadcard/CutVideoBottomSheetDialog.kt index 58054a96..414235b9 100644 --- a/app/src/main/java/com/deniscerri/ytdl/ui/downloadcard/CutVideoBottomSheetDialog.kt +++ b/app/src/main/java/com/deniscerri/ytdl/ui/downloadcard/CutVideoBottomSheetDialog.kt @@ -376,7 +376,8 @@ class CutVideoBottomSheetDialog(private val _item: DownloadItem? = null, private event.keyCode == KeyEvent.KEYCODE_ENTER ) { updateFromStartTextInput(startTextInput.text.toString()) - true + startTextInput.clearFocus() + false // close keyboard } else { false } @@ -394,7 +395,8 @@ class CutVideoBottomSheetDialog(private val _item: DownloadItem? = null, private event.keyCode == KeyEvent.KEYCODE_ENTER ) { updateFromEndTextInput(endTextInput.text.toString()) - true + endTextInput.clearFocus() + false // close keyboard } else { false }