| Index: src/org/adblockplus/android/ProxyService.java |
| =================================================================== |
| --- a/src/org/adblockplus/android/ProxyService.java |
| +++ b/src/org/adblockplus/android/ProxyService.java |
| @@ -269,7 +269,7 @@ |
| ongoingNotification.setLatestEventInfo(getApplicationContext(), getText(R.string.app_name), msg, contentIntent); |
| startForeground(ONGOING_NOTIFICATION_ID, ongoingNotification); |
| - sendBroadcast(new Intent(BROADCAST_STATE_CHANGED).putExtra("enabled", true).putExtra("port", port).putExtra("manual", !transparent && !nativeProxy)); |
| + sendBroadcast(new Intent(BROADCAST_STATE_CHANGED).putExtra("enabled", true).putExtra("port", port).putExtra("manual", isManual())); |
| Log.i(TAG, "Service started"); |
| } |
| @@ -461,6 +461,14 @@ |
| } |
| /** |
| + * Checks if user has to set proxy settings manually |
| + */ |
| + public boolean isManual() |
| + { |
| + return !transparent && !nativeProxy; |
| + } |
| + |
| + /** |
| * Checks if specified host is local. |
| */ |
| private static final boolean isLocalHost(String host) |