Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: mobile/android/base/java/org/adblockplus/browser/WhitelistedWebsitesPreferenceGroup.java

Issue 29863604: Issue 6865 - Update ABP dependency to version 3.2 (Closed)
Patch Set: Removing allowed contexts Created Aug. 28, 2018, 5:08 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mobile/android/base/java/org/adblockplus/browser/WhitelistedWebsitesPreferenceGroup.java
===================================================================
--- a/mobile/android/base/java/org/adblockplus/browser/WhitelistedWebsitesPreferenceGroup.java
+++ b/mobile/android/base/java/org/adblockplus/browser/WhitelistedWebsitesPreferenceGroup.java
@@ -64,17 +64,17 @@
this.setLayoutResource(R.layout.abb_minimal_widget);
}
@Override
protected void onAttachedToActivity()
{
super.onAttachedToActivity();
this.showDialog();
- AddOnBridge.queryWhitelistedWebsites(this);
+ ExtensionBridge.queryWhitelistedWebsites(this);
}
@Override
public void onApiRequestSucceeded(GeckoBundle bundle)
{
this.dismissDialog();
this.initEntries(bundle);
}
@@ -85,17 +85,17 @@
Log.w(TAG, "queryWhitelistedWebsites failed: " + errorMessage);
this.dismissDialog();
}
@Override
public void onInputReady(String input)
{
this.whitelistedWebsites.add(UrlUtils.getHostFromUrl(input));
- AddOnBridge.whitelistWebsite(input, true, this.whitelistCallback);
+ ExtensionBridge.whitelistWebsite(input, true, this.whitelistCallback);
this.refreshEntries();
}
private void initEntries(GeckoBundle bundle)
{
this.whitelistedWebsites.clear();
for(final GeckoBundle whitelistedWebsite : bundle.getBundleArray("value"))
@@ -113,17 +113,17 @@
for (final String url : this.whitelistedWebsites)
{
final WhitelistedWebsitePreference whitelistedWebsitePreference =
new WhitelistedWebsitePreference(this.getContext(), url, new DialogInterface.OnClickListener()
{
@Override
public void onClick(DialogInterface dialog, int which)
{
- AddOnBridge.whitelistWebsite(url, false, WhitelistedWebsitesPreferenceGroup.this.whitelistCallback);
+ ExtensionBridge.whitelistWebsite(url, false, WhitelistedWebsitesPreferenceGroup.this.whitelistCallback);
WhitelistedWebsitesPreferenceGroup.this.whitelistedWebsites.remove(url);
WhitelistedWebsitesPreferenceGroup.this.refreshEntries();
}
});
this.addPreference(whitelistedWebsitePreference);
}
final InputValidatorDialogPreference inputPreference = new InputValidatorDialogPreference(

Powered by Google App Engine
This is Rietveld