renable the network state receiver code
This commit is contained in:
parent
2f899cb680
commit
09bdd8fd29
|
@ -444,7 +444,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst
|
||||||
Log.d(TAG, msg);
|
Log.d(TAG, msg);
|
||||||
sendCallbackLogMessage(msg);
|
sendCallbackLogMessage(msg);
|
||||||
|
|
||||||
// unregisterReceiver(mNetworkStateReceiver);
|
unregisterReceiver(mNetworkStateReceiver);
|
||||||
|
|
||||||
clearNotifications ();
|
clearNotifications ();
|
||||||
|
|
||||||
|
@ -624,9 +624,8 @@ public class TorService extends Service implements TorServiceConstants, TorConst
|
||||||
if (mNotificationManager == null)
|
if (mNotificationManager == null)
|
||||||
{
|
{
|
||||||
|
|
||||||
// IntentFilter mNetworkStateFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);
|
IntentFilter mNetworkStateFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);
|
||||||
// mNetworkStateFilter.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
|
registerReceiver(mNetworkStateReceiver , mNetworkStateFilter);
|
||||||
// registerReceiver(mNetworkStateReceiver , mNetworkStateFilter);
|
|
||||||
|
|
||||||
mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue