|
|
|
@ -16,6 +16,7 @@ import mozilla.components.concept.engine.content.blocking.TrackingProtectionExce
|
|
|
|
|
import mozilla.components.feature.session.TrackingProtectionUseCases
|
|
|
|
|
import mozilla.components.lib.state.ext.consumeFrom
|
|
|
|
|
import org.mozilla.fenix.BrowserDirection
|
|
|
|
|
import org.mozilla.fenix.FeatureFlags
|
|
|
|
|
import org.mozilla.fenix.HomeActivity
|
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
|
import org.mozilla.fenix.components.StoreProvider
|
|
|
|
@ -76,8 +77,10 @@ class ExceptionsFragment : Fragment() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private fun deleteOneItem(item: TrackingProtectionException) {
|
|
|
|
|
// We can't currently delete one item in this Exceptions list with a URL with the GV API
|
|
|
|
|
// See https://github.com/mozilla-mobile/android-components/issues/4699
|
|
|
|
|
// This feature hasn't been uplifted yet.
|
|
|
|
|
if (FeatureFlags.deleteIndividualTrackingProtectionExceptions) {
|
|
|
|
|
trackingProtectionUseCases.removeAllExceptions()
|
|
|
|
|
}
|
|
|
|
|
Log.e("Remove one exception", "$item")
|
|
|
|
|
reloadExceptions()
|
|
|
|
|
}
|
|
|
|
|