mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Merge pull request #5907 from Bnyro/master
fix: thumbnail time defaults in contribute to DeArrow dialog
This commit is contained in:
commit
964f47c70a
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user