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

Unified Diff: mobile/android/base/java/org/adblockplus/browser/AbpCheckBoxPreference.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
« no previous file with comments | « ensure_dependencies.py ('k') | mobile/android/base/java/org/adblockplus/browser/BrowserAppUtils.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mobile/android/base/java/org/adblockplus/browser/AbpCheckBoxPreference.java
===================================================================
--- a/mobile/android/base/java/org/adblockplus/browser/AbpCheckBoxPreference.java
+++ b/mobile/android/base/java/org/adblockplus/browser/AbpCheckBoxPreference.java
@@ -50,24 +50,24 @@
super.onAttachedToActivity();
this.apiKey = this.getKey().substring(this.getKey().lastIndexOf(".api") + 4);
this.setEnabled(false);
this.refreshValue();
}
private void refreshValue()
{
- AddOnBridge.queryValue(this.apiKey, this);
+ ExtensionBridge.queryValue(this.apiKey, this);
}
@Override
protected void onClick()
{
super.onClick();
- AddOnBridge.setBoolean(this.apiKey, this.isChecked(), null);
+ ExtensionBridge.setBoolean(this.apiKey, this.isChecked(), null);
}
@Override
public void onApiRequestSucceeded(GeckoBundle bundle)
{
final boolean enabled = bundle.getBoolean("value");
ThreadUtils.postToUiThread(new Runnable()
{
« no previous file with comments | « ensure_dependencies.py ('k') | mobile/android/base/java/org/adblockplus/browser/BrowserAppUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld