mirror of
https://github.com/moparisthebest/SSLDroid
synced 2024-11-23 09:22:16 -05:00
Causes NullPointerException
Revert "Enhanced logging for Network status change, so that we are able to"
This reverts commit c8a4d2a459
.
This commit is contained in:
parent
c8a4d2a459
commit
99c780aabc
@ -13,13 +13,13 @@ public class NetworkChangeReceiver extends BroadcastReceiver {
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( Context.CONNECTIVITY_SERVICE );
|
||||
NetworkInfo activeNetInfo = connectivityManager.getActiveNetworkInfo();
|
||||
Log.d("SSLDroid", activeNetInfo.toString());
|
||||
if ( activeNetInfo == null ) {
|
||||
Intent i = new Intent();
|
||||
i.setAction("hu.blint.ssldroid.SSLDroid");
|
||||
context.stopService(i);
|
||||
return;
|
||||
}
|
||||
Log.d("SSLDroid", activeNetInfo.toString());
|
||||
if (activeNetInfo.isAvailable()) {
|
||||
Intent i = new Intent();
|
||||
i.setAction("hu.blint.ssldroid.SSLDroid");
|
||||
|
Loading…
Reference in New Issue
Block a user