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

Unified Diff: src/org/adblockplus/android/BridgeCommand.java

Issue 4705284891082752: Proxy configurators (Closed)
Patch Set: Another round Created Aug. 19, 2014, 4:34 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: src/org/adblockplus/android/BridgeCommand.java
diff --git a/src/org/adblockplus/android/Subscription.java b/src/org/adblockplus/android/BridgeCommand.java
old mode 100755
new mode 100644
similarity index 69%
copy from src/org/adblockplus/android/Subscription.java
copy to src/org/adblockplus/android/BridgeCommand.java
index de67f9bba5871ec5d3c2e27f93842bd17ac28bed..2c32cb5f22a6db79709698ebed94baf49e0fa5f7
--- a/src/org/adblockplus/android/Subscription.java
+++ b/src/org/adblockplus/android/BridgeCommand.java
@@ -17,12 +17,21 @@
package org.adblockplus.android;
-public class Subscription
+public enum BridgeCommand
{
- public String title;
- public String specialization;
- public String url;
- public String homepage;
- public String[] prefixes;
- public String author;
+ /** Used for e.g. no-traffic check, rebuilds/redisplays notification. */
+ STATE_CHANGED,
+ UNKNOWN;
+
+ public static BridgeCommand fromString(final String str)
+ {
+ try
+ {
+ return BridgeCommand.valueOf(str);
+ }
+ catch (final Throwable t)
+ {
+ return UNKNOWN;
+ }
+ }
}
« no previous file with comments | « src/org/adblockplus/android/AdvancedPreferences.java ('k') | src/org/adblockplus/android/ConfigurationActivity.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld