mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/2531 - Adds privacy notice to settings
This commit is contained in:
parent
05217c6248
commit
5af8b93707
@ -37,6 +37,7 @@ import org.mozilla.fenix.R.string.pref_key_help
|
||||
import org.mozilla.fenix.R.string.pref_key_language
|
||||
import org.mozilla.fenix.R.string.pref_key_leakcanary
|
||||
import org.mozilla.fenix.R.string.pref_key_make_default_browser
|
||||
import org.mozilla.fenix.R.string.pref_key_privacy_policy
|
||||
import org.mozilla.fenix.R.string.pref_key_rate
|
||||
import org.mozilla.fenix.R.string.pref_key_remote_debugging
|
||||
import org.mozilla.fenix.R.string.pref_key_search_engine_settings
|
||||
@ -160,6 +161,12 @@ class SettingsFragment : PreferenceFragmentCompat(), CoroutineScope, AccountObse
|
||||
resources.getString(pref_key_theme) -> {
|
||||
navigateToThemeSettings()
|
||||
}
|
||||
resources.getString(pref_key_privacy_policy) -> {
|
||||
requireContext().apply {
|
||||
val intent = SupportUtils.createCustomTabIntent(this, SupportUtils.PRIVACY_NOTICE_URL)
|
||||
startActivity(intent)
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onPreferenceTreeClick(preference)
|
||||
}
|
||||
|
@ -16,6 +16,7 @@
|
||||
<string name="pref_key_rate" translatable="false">pref_key_rate</string>
|
||||
<string name="pref_key_feedback" translatable="false">pref_key_feedback</string>
|
||||
<string name="pref_key_about" translatable="false">pref_key_about</string>
|
||||
<string name="pref_key_privacy_policy" translatable="false">pref_key_privacy_policy</string>
|
||||
<string name="pref_key_account" translatable="false">pref_key_account</string>
|
||||
<string name="pref_key_sign_in" translatable="false">pref_key_sign_in</string>
|
||||
<string name="pref_key_private_mode" translatable="false">pref_key_private_mode</string>
|
||||
|
@ -101,6 +101,8 @@
|
||||
<!-- Preference linking to about page for Fenix
|
||||
The first parameter is the name of the app defined in app_name (for example: Fenix) -->
|
||||
<string name="preferences_about">About %1$s</string>
|
||||
<!-- Preference linking to the privacy policy -->
|
||||
<string name="preferences_privacy_policy">Privacy Policy</string>
|
||||
<!-- Preference for settings related to saved passwords -->
|
||||
<string name="preferences_passwords">Passwords</string>
|
||||
<!-- Preference for settings related to saved credit cards and addresses -->
|
||||
|
@ -96,5 +96,9 @@
|
||||
android:icon="@drawable/ic_info"
|
||||
android:key="@string/pref_key_about"
|
||||
android:title="@string/preferences_about" />
|
||||
<androidx.preference.Preference
|
||||
android:icon="@drawable/ic_info"
|
||||
android:key="@string/pref_key_privacy_policy"
|
||||
android:title="@string/preferences_privacy_policy" />
|
||||
</androidx.preference.PreferenceCategory>
|
||||
</androidx.preference.PreferenceScreen>
|
Loading…
Reference in New Issue
Block a user