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

Unified Diff: libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/IsAllowedConnectionCallbackImpl.java

Issue 29413555: Issue 5145 - Add test for IsAllowedConnectionCallbackImpl (Closed)
Patch Set: Created April 15, 2017, 1:55 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: libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/IsAllowedConnectionCallbackImpl.java
diff --git a/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/IsAllowedConnectionCallbackImpl.java b/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/IsAllowedConnectionCallbackImpl.java
index f5b7fcda7df5fbe5f1edb2e21664e75f57c41a87..64612885c1302f6c4df0fefa1bbf693779e47ed5 100644
--- a/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/IsAllowedConnectionCallbackImpl.java
+++ b/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/IsAllowedConnectionCallbackImpl.java
@@ -31,10 +31,10 @@ public class IsAllowedConnectionCallbackImpl extends IsAllowedConnectionCallback
private ConnectivityManager manager;
- public IsAllowedConnectionCallbackImpl(Context context)
anton 2017/04/15 13:58:03 minor change (taking into account law of demeter).
+ public IsAllowedConnectionCallbackImpl(ConnectivityManager manager)
{
super();
- this.manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
+ this.manager = manager;
}
@Override

Powered by Google App Engine
This is Rietveld