mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
Enable the SponsorBlock marker option by default
This commit is contained in:
parent
1109a93d23
commit
2180f503fe
@ -35,7 +35,7 @@ class MarkableTimeBar(
|
|||||||
private fun drawSegments(canvas: Canvas) {
|
private fun drawSegments(canvas: Canvas) {
|
||||||
if (player == null) return
|
if (player == null) return
|
||||||
|
|
||||||
if (!PreferenceHelper.getBoolean(PreferenceKeys.SB_SHOW_MARKERS, false)) return
|
if (!PreferenceHelper.getBoolean(PreferenceKeys.SB_SHOW_MARKERS, true)) return
|
||||||
|
|
||||||
canvas.save()
|
canvas.save()
|
||||||
length = canvas.width - 2 * HORIZONTAL_OFFSET
|
length = canvas.width - 2 * HORIZONTAL_OFFSET
|
||||||
|
@ -16,18 +16,18 @@
|
|||||||
app:key="sb_notifications_key"
|
app:key="sb_notifications_key"
|
||||||
app:title="@string/sponsorblock_notifications" />
|
app:title="@string/sponsorblock_notifications" />
|
||||||
|
|
||||||
|
<SwitchPreferenceCompat
|
||||||
|
android:summary="@string/sb_markers_summary"
|
||||||
|
app:defaultValue="true"
|
||||||
|
app:key="sb_show_markers"
|
||||||
|
app:title="@string/sb_markers" />
|
||||||
|
|
||||||
<SwitchPreferenceCompat
|
<SwitchPreferenceCompat
|
||||||
android:summary="@string/sb_skip_manual_summary"
|
android:summary="@string/sb_skip_manual_summary"
|
||||||
app:defaultValue="false"
|
app:defaultValue="false"
|
||||||
app:key="sb_skip_manually_key"
|
app:key="sb_skip_manually_key"
|
||||||
app:title="@string/sb_skip_manual" />
|
app:title="@string/sb_skip_manual" />
|
||||||
|
|
||||||
<SwitchPreferenceCompat
|
|
||||||
android:summary="@string/sb_markers_summary"
|
|
||||||
app:defaultValue="false"
|
|
||||||
app:key="sb_show_markers"
|
|
||||||
app:title="@string/sb_markers" />
|
|
||||||
|
|
||||||
<PreferenceCategory app:title="@string/category_segments">
|
<PreferenceCategory app:title="@string/category_segments">
|
||||||
|
|
||||||
<SwitchPreferenceCompat
|
<SwitchPreferenceCompat
|
||||||
|
Loading…
x
Reference in New Issue
Block a user