feat: show success toast when segment was submitted successfully

This commit is contained in:
Bnyro 2023-10-12 18:09:50 +02:00
parent b53e4d2663
commit f84ec13f58
2 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,7 @@ class SubmitSegmentDialog : DialogFragment() {
RetrofitInstance.externalApi
.submitSegment(videoId, startTime, endTime, category, userAgent, uuid, duration)
}
context.toastFromMainDispatcher(R.string.segment_submitted)
} catch (e: Exception) {
Log.e(TAG(), e.toString())
context.toastFromMainDispatcher(e.localizedMessage.orEmpty())

View File

@ -451,6 +451,7 @@
<string name="same_as_fullscreen">Same as fullscreen</string>
<string name="playback_during_call">Continue playback during phone call</string>
<string name="playback_during_call_summary">Note that this also affects the app to not handle any kind of audio focus anymore.</string>
<string name="segment_submitted">Segment submitted</string>
<!-- Backup & Restore Settings -->
<string name="import_subscriptions_from">Import subscriptions from</string>