fix(YouTube Music/SponsorBlock): some settings and resources have been missing

This commit is contained in:
inotia00 2023-12-02 01:44:17 +09:00
parent c3ff47b918
commit efab82b70d
2 changed files with 4 additions and 0 deletions

View File

@ -204,6 +204,9 @@ WARNING: Do not enable new player backgrounds while this is enabled."</string>
<string name="sb_enabled">Enable SponsorBlock</string>
<string name="sb_enabled_sum">SponsorBlock is a crowd-sourced system for skipping annoying parts of YouTube videos.</string>
<string name="sb_toast_on_connection_error">Show a toast if API is not available</string>
<string name="sb_toast_on_connection_error_sum">Toast shown if SponsorBlock API is not available.</string>
<string name="sb_toast_on_skip">Show a toast when skipping automatically</string>
<string name="sb_toast_on_skip_sum">Toast shown when a segment is automatically skipped.</string>

View File

@ -3,6 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:yt="http://schemas.android.com/apk/res-auto">
<com.google.android.apps.youtube.music.ui.preference.SwitchCompatPreference android:title="@string/sb_enabled" android:key="sb_enabled" android:summary="@string/sb_enabled_sum" android:defaultValue="true" />
<com.google.android.apps.youtube.music.ui.preference.SwitchCompatPreference android:title="@string/sb_toast_on_skip" android:key="sb_toast_on_skip" android:summary="@string/sb_toast_on_skip_sum" android:dependency="sb_enabled" android:defaultValue="true" />
<com.google.android.apps.youtube.music.ui.preference.SwitchCompatPreference android:title="@string/sb_toast_on_connection_error" android:key="sb_toast_on_connection_error" android:summary="@string/sb_toast_on_connection_error_sum" android:dependency="sb_enabled" android:defaultValue="true" />
<Preference android:title="@string/sb_api_url" android:key="sb_api_url" android:summary="@string/sb_api_url_sum" android:dependency="sb_enabled">
<intent android:targetPackage="com.google.android.apps.youtube.music" android:data="sb_api_url" android:targetClass="com.google.android.libraries.strictmode.penalties.notification.FullStackTraceActivity" />
</Preference>