Skip to content

Commit

Permalink
turned off no internet on main loop restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
nebogeo committed Apr 16, 2018
1 parent 7f32e3b commit 4e3f10e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android/app/src/main/java/foam/starwisp/NetworkManager.java
Expand Up @@ -30,6 +30,7 @@
import android.content.IntentFilter;
import android.os.Handler;
import android.os.Message;
import android.os.StrictMode;

import android.net.wifi.WifiConfiguration;

Expand Down Expand Up @@ -78,11 +79,16 @@ static class Lock extends Object {}
}

void Start(String ssid, StarwispActivity c, String name, StarwispBuilder b) {

Log.i("starwisp","Network startup!");
m_CallbackName=name;
m_Context=c;
m_Builder=b;

StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);


if (state==NetworkManager.State.IDLE) {
Log.i("starwisp","State is idle, launching scan");

Expand Down

0 comments on commit 4e3f10e

Please sign in to comment.