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

Unified Diff: mobile/android/thirdparty/org/adblockplus/browser/AbpCheckBoxPreference.java

Issue 29375675: Issue 4889 - Checkboxes automatically change their state if clicked too fast (Closed)
Patch Set: Created Feb. 13, 2017, 7:17 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mobile/android/thirdparty/org/adblockplus/browser/AbpCheckBoxPreference.java
===================================================================
--- a/mobile/android/thirdparty/org/adblockplus/browser/AbpCheckBoxPreference.java
+++ b/mobile/android/thirdparty/org/adblockplus/browser/AbpCheckBoxPreference.java
@@ -58,17 +58,16 @@ public class AbpCheckBoxPreference exten
AddOnBridge.queryValue(this, this.apiKey);
}
@Override
protected void onClick()
{
super.onClick();
AddOnBridge.setBoolean(this, this.apiKey, this.isChecked());
- this.refreshValue();
}
@Override
public void onApiRequestSucceeded(NativeJSObject jsObject)
{
if (jsObject.has("value"))
{
final boolean enabled = AddOnBridge.getBooleanFromJsObject(jsObject, "value", false);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld