Merge pull request #5907 from Bnyro/master

fix: thumbnail time defaults in contribute to DeArrow dialog
This commit is contained in:
Bnyro 2024-04-15 14:04:51 +02:00 committed by GitHub
commit 964f47c70a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -22,7 +22,7 @@ import kotlinx.coroutines.withContext
class SubmitDeArrowDialog: DialogFragment() {
private var videoId: String = ""
private var currentPosition: Long = 0
private var currentPosition: Float = 0f
private var _binding: DialogSubmitDearrowBinding? = null
private val binding get() = _binding!!
@ -31,7 +31,7 @@ class SubmitDeArrowDialog: DialogFragment() {
super.onCreate(savedInstanceState)
arguments?.let {
videoId = it.getString(IntentData.videoId)!!
currentPosition = it.getLong(IntentData.currentPosition)
currentPosition = it.getLong(IntentData.currentPosition).toFloat() / 1000
}
}

View File

@ -31,7 +31,7 @@
android:id="@+id/thumbnail_time_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:checked="false"
android:text="@string/thumbnail_time" />
</LinearLayout>
@ -53,6 +53,7 @@
android:id="@+id/thumbnail_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:enabled="false"
android:inputType="numberDecimal" />
</com.google.android.material.textfield.TextInputLayout>