mirror of
https://github.com/moparisthebest/SSLDroid
synced 2024-11-27 03:12:18 -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) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( Context.CONNECTIVITY_SERVICE );
|
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( Context.CONNECTIVITY_SERVICE );
|
||||||
NetworkInfo activeNetInfo = connectivityManager.getActiveNetworkInfo();
|
NetworkInfo activeNetInfo = connectivityManager.getActiveNetworkInfo();
|
||||||
Log.d("SSLDroid", activeNetInfo.toString());
|
|
||||||
if ( activeNetInfo == null ) {
|
if ( activeNetInfo == null ) {
|
||||||
Intent i = new Intent();
|
Intent i = new Intent();
|
||||||
i.setAction("hu.blint.ssldroid.SSLDroid");
|
i.setAction("hu.blint.ssldroid.SSLDroid");
|
||||||
context.stopService(i);
|
context.stopService(i);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Log.d("SSLDroid", activeNetInfo.toString());
|
||||||
if (activeNetInfo.isAvailable()) {
|
if (activeNetInfo.isAvailable()) {
|
||||||
Intent i = new Intent();
|
Intent i = new Intent();
|
||||||
i.setAction("hu.blint.ssldroid.SSLDroid");
|
i.setAction("hu.blint.ssldroid.SSLDroid");
|
||||||
|
Loading…
Reference in New Issue
Block a user