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( |