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

Side by Side Diff: libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java

Issue 29435570: Issue 5205 - Add Subscription.isDisabled() (Closed)
Patch Set: removed one more [unnecessary] casting Created May 26, 2017, 5:50 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 }; 992 };
993 993
994 List<Subscription> subscriptions = adblockEngine.getFilterEngine().get ListedSubscriptions(); 994 List<Subscription> subscriptions = adblockEngine.getFilterEngine().get ListedSubscriptions();
995 try 995 try
996 { 996 {
997 d("Listed subscriptions: " + subscriptions.size()); 997 d("Listed subscriptions: " + subscriptions.size());
998 if (debugMode) 998 if (debugMode)
999 { 999 {
1000 for (Subscription eachSubscription : subscriptions) 1000 for (Subscription eachSubscription : subscriptions)
1001 { 1001 {
1002 d("Subscribed to " + eachSubscription); 1002 d("Subscribed to "
1003 + (eachSubscription.isDisabled() ? "disabled" : "enabled")
1004 + " " + eachSubscription);
1003 } 1005 }
1004 } 1006 }
1005 } 1007 }
1006 finally 1008 finally
1007 { 1009 {
1008 for (Subscription eachSubscription : subscriptions) 1010 for (Subscription eachSubscription : subscriptions)
1009 { 1011 {
1010 eachSubscription.dispose(); 1012 eachSubscription.dispose();
1011 } 1013 }
1012 } 1014 }
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 w("Busy with elemhide selectors, delayed disposing scheduled"); 1429 w("Busy with elemhide selectors, delayed disposing scheduled");
1428 elemHideThread.setFinishedRunnable(disposeRunnable); 1430 elemHideThread.setFinishedRunnable(disposeRunnable);
1429 } 1431 }
1430 else 1432 else
1431 { 1433 {
1432 disposeRunnable.run(); 1434 disposeRunnable.run();
1433 } 1435 }
1434 } 1436 }
1435 } 1437 }
1436 } 1438 }
OLDNEW

Powered by Google App Engine
This is Rietveld