|
@@ -98,9 +98,14 @@ public class MainActivity extends FlutterActivity {
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
EventChannelPlugin.getInstance().sendEventData(response.toString());
|
|
EventChannelPlugin.getInstance().sendEventData(response.toString());
|
|
-// wifiList.add(wifi);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ response = new JSONObject();
|
|
|
|
+ try {
|
|
|
|
+ response.put("cmd","scanComplete");
|
|
|
|
+ } catch (JSONException e) {
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
+ }
|
|
|
|
+ EventChannelPlugin.getInstance().sendEventData(response.toString());
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|