mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-22 07:43:15 +00:00
Revert "Reload on service state changes"
This reverts commit 913eb460c7
.
This commit is contained in:
parent
2ed792332c
commit
43f2f62c4e
1 changed files with 0 additions and 24 deletions
|
@ -60,7 +60,6 @@ import android.os.Process;
|
|||
import android.os.SystemClock;
|
||||
import android.provider.Settings;
|
||||
import android.telephony.PhoneStateListener;
|
||||
import android.telephony.ServiceState;
|
||||
import android.telephony.TelephonyManager;
|
||||
import android.text.Spannable;
|
||||
import android.text.SpannableString;
|
||||
|
@ -2329,29 +2328,6 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onServiceStateChanged(ServiceState serviceState) {
|
||||
String state;
|
||||
switch (serviceState.getState()) {
|
||||
case ServiceState.STATE_IN_SERVICE:
|
||||
state = "IN_SERVICE";
|
||||
break;
|
||||
case ServiceState.STATE_OUT_OF_SERVICE:
|
||||
state = "OUT_OF_SERVICE";
|
||||
break;
|
||||
case ServiceState.STATE_EMERGENCY_ONLY:
|
||||
state = "EMERGENCY_ONLY";
|
||||
break;
|
||||
case ServiceState.STATE_POWER_OFF:
|
||||
state = "POWER_OFF";
|
||||
break;
|
||||
default:
|
||||
state = Integer.toString(serviceState.getState());
|
||||
}
|
||||
Log.i(TAG, "Service state=" + state);
|
||||
reload("service state changed", ServiceSinkhole.this, false);
|
||||
}
|
||||
};
|
||||
|
||||
private BroadcastReceiver packageChangedReceiver = new BroadcastReceiver() {
|
||||
|
|
Loading…
Reference in a new issue