Skip to content
Snippets Groups Projects
Commit a8782937 authored by akwizgran's avatar akwizgran
Browse files

Unwrapped a line. Because I care.

parent c403df0e
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,8 @@ class DroidLanTcpPlugin extends LanTcpPlugin {
@Override
public DuplexTransportConnection createInvitationConnection(PseudoRandom r,
long timeout) {
WifiManager wifi =
(WifiManager) appContext.getSystemService(WIFI_SERVICE);
Object o = appContext.getSystemService(WIFI_SERVICE);
WifiManager wifi = (WifiManager) o;
if(wifi == null || !wifi.isWifiEnabled()) return null;
MulticastLock lock = wifi.createMulticastLock("invitation");
lock.acquire();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment