For #1084 - Remove Exceptions from TP setting for Beta
parent
1c8f1ca844
commit
e9edd6c8b5
|
@ -44,18 +44,5 @@ class TrackingProtectionFragment : PreferenceFragmentCompat() {
|
||||||
requireContext().components.useCases.sessionUseCases.reload.invoke()
|
requireContext().components.useCases.sessionUseCases.reload.invoke()
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exceptions
|
|
||||||
val exceptions =
|
|
||||||
context!!.getPreferenceKey(R.string.pref_key_tracking_protection_exceptions)
|
|
||||||
val preferenceExceptions = findPreference<Preference>(exceptions)
|
|
||||||
preferenceExceptions?.onPreferenceClickListener = getClickListenerForSignOut()
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun getClickListenerForSignOut(): Preference.OnPreferenceClickListener {
|
|
||||||
return Preference.OnPreferenceClickListener {
|
|
||||||
// TODO go to Exceptions Fragment
|
|
||||||
true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||||
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:defaultValue="true"
|
android:defaultValue="true"
|
||||||
android:icon="@drawable/ic_tracking_protection"
|
android:icon="@drawable/ic_tracking_protection"
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
android:summary="@string/preferences_tracking_protection_description"
|
android:summary="@string/preferences_tracking_protection_description"
|
||||||
android:title="@string/preferences_tracking_protection" />
|
android:title="@string/preferences_tracking_protection" />
|
||||||
<Preference
|
<Preference
|
||||||
|
app:isPreferenceVisible="false"
|
||||||
android:icon="@drawable/ic_internet"
|
android:icon="@drawable/ic_internet"
|
||||||
android:key="@string/pref_key_tracking_protection_exceptions"
|
android:key="@string/pref_key_tracking_protection_exceptions"
|
||||||
android:title="@string/preferences_tracking_protection_exceptions" />
|
android:title="@string/preferences_tracking_protection_exceptions" />
|
||||||
|
|
Loading…
Reference in New Issue