Permalink
Browse files

Make AndroidUsingLinkProperties.setup() return the mechanism

  • Loading branch information...
Flowdalic committed May 4, 2018
1 parent 5861e82 commit c242a0c7168193f812ed138c500b59f3f16f8810
@@ -41,10 +41,12 @@
* first DNS lookup.
*
* @param context a Context instance.
* @return the instance of the newly setup mechanism
*/
public static void setup(Context context) {
public static AndroidUsingLinkProperties setup(Context context) {
AndroidUsingLinkProperties androidUsingLinkProperties = new AndroidUsingLinkProperties(context);
DnsClient.addDnsServerLookupMechanism(androidUsingLinkProperties);
return androidUsingLinkProperties;
}

public AndroidUsingLinkProperties(Context context) {

0 comments on commit c242a0c

Please sign in to comment.