Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: thumbnail time defaults in contribute to DeArrow dialog #5907

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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!!
Expand All @@ -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
}
}

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/dialog_submit_dearrow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>

Expand Down
Loading