SponsorBlock: Add link to privacy policy

Using the SponsorBlock has a slight privacy implication which the user should be
able to inform themself on.
This commit is contained in:
Atemu 2020-05-15 21:40:22 +02:00 committed by polymorphicshade
parent 7b62bf656c
commit fea9cbd34e
4 changed files with 20 additions and 0 deletions

View file

@ -140,6 +140,17 @@ public class ContentSettingsFragment extends BasePreferenceFragment {
return true; return true;
}); });
Preference sponsorblockPrivacyPreference =
findPreference(getString(R.string.sponsorblock_privacy));
sponsorblockPrivacyPreference.setOnPreferenceClickListener((Preference p) -> {
Intent i = new Intent(Intent.ACTION_VIEW,
Uri.parse(
"https://gist.github.com/ajayyy/aa9f8ded2b573d4f73a3ffa0ef74f796"
+ "#requests-sent-to-the-server-while-using-the-extension"));
startActivity(i);
return true;
});
Preference sponsorblockStatusPreference = Preference sponsorblockStatusPreference =
findPreference(getString(R.string.sponsorblock_status)); findPreference(getString(R.string.sponsorblock_status));
sponsorblockStatusPreference.setOnPreferenceClickListener((Preference p) -> { sponsorblockStatusPreference.setOnPreferenceClickListener((Preference p) -> {

View file

@ -226,6 +226,7 @@
<string name="sponsorblock_enable" translatable="false">skip_sponsors</string> <string name="sponsorblock_enable" translatable="false">skip_sponsors</string>
<string name="sponsorblock_notifications" translatable="false">sponsorblock_notifications</string> <string name="sponsorblock_notifications" translatable="false">sponsorblock_notifications</string>
<string name="sponsorblock_status" translatable="false">sponsorblock_status</string> <string name="sponsorblock_status" translatable="false">sponsorblock_status</string>
<string name="sponsorblock_privacy" translatable="false">sponsorblock_privacy</string>
<!-- FileName Downloads --> <!-- FileName Downloads -->
<string name="settings_file_charset_key" translatable="false">file_rename_charset</string> <string name="settings_file_charset_key" translatable="false">file_rename_charset</string>

View file

@ -665,6 +665,8 @@
<string name="sponsorblock_enable_summary">Use the SponsorBlock API to automatically skip sponsors in videos.</string> <string name="sponsorblock_enable_summary">Use the SponsorBlock API to automatically skip sponsors in videos.</string>
<string name="sponsorblock_notifications_title">Notify when sponsors are skipped</string> <string name="sponsorblock_notifications_title">Notify when sponsors are skipped</string>
<string name="sponsorblock_notifications_summary">Send a notification to your device when a sponsor is automatically skipped.</string> <string name="sponsorblock_notifications_summary">Send a notification to your device when a sponsor is automatically skipped.</string>
<string name="sponsorblock_privacy_title">View Privacy Policy</string>
<string name="sponsorblock_privacy_summary">View the privacy policy of the SponsorBlock service.</string>
<string name="sponsorblock_status_title">View Online Status</string> <string name="sponsorblock_status_title">View Online Status</string>
<string name="sponsorblock_status_summary">View the online status of the SponsorBlock servers.</string> <string name="sponsorblock_status_summary">View the online status of the SponsorBlock servers.</string>
</resources> </resources>

View file

@ -137,6 +137,12 @@
android:title="@string/sponsorblock_notifications_title" android:title="@string/sponsorblock_notifications_title"
app:iconSpaceReserved="false" /> app:iconSpaceReserved="false" />
<Preference
android:key="@string/sponsorblock_privacy"
android:summary="@string/sponsorblock_privacy_summary"
android:title="@string/sponsorblock_privacy_title"
app:iconSpaceReserved="false" />
<Preference <Preference
android:key="@string/sponsorblock_status" android:key="@string/sponsorblock_status"
android:summary="@string/sponsorblock_status_summary" android:summary="@string/sponsorblock_status_summary"