From d302351aec69ac5014e5beabc4bc67a579d3dca0 Mon Sep 17 00:00:00 2001 From: Max Jakobitsch Date: Sat, 1 Mar 2025 19:30:02 +0100 Subject: [PATCH] Normalize text inputs on submit --- .../ytdl/ui/downloadcard/CutVideoBottomSheetDialog.kt | 4 ++-- 1 file changed, 2 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 f8450679..58054a96 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 @@ -476,7 +476,7 @@ class CutVideoBottomSheetDialog(private val _item: DownloadItem? = null, private return } - setStartTimestamp(timestamp, updateTextInput = false) + setStartTimestamp(timestamp, updateTextInput = true) // also update text input to normalize player.seekTo(timestamp) player.play() } @@ -488,7 +488,7 @@ class CutVideoBottomSheetDialog(private val _item: DownloadItem? = null, private return } - setEndTimestamp(timestamp, updateTextInput = false) + setEndTimestamp(timestamp, updateTextInput = true) // also update text input to normalize player.seekTo(timestamp - 1500) player.play()