1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-21 23:33:21 +00:00

Revert "Reload on service state changes"

This reverts commit 913eb460c7.
This commit is contained in:
M66B 2023-11-02 08:18:36 +01:00
parent 2ed792332c
commit 43f2f62c4e

View file

@ -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() {