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: Adjusting build script and removing extension first run page Created Jan. 8, 2019, 2:54 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/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()
{

Powered by Google App Engine
This is Rietveld