Fixed crash in flight mode
This commit is contained in:
parent
98ea3b0489
commit
ce7f772d7e
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ public class CSVWriter {
|
|||
public static String getRat(Context context){
|
||||
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
NetworkInfo netInfo = cm.getActiveNetworkInfo();
|
||||
if(netInfo == null)
|
||||
return "n/a";
|
||||
|
||||
//WifiManager wm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
|
||||
//WifiInfo wifiInfo = wm.getConnectionInfo();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue