version:3.0.8

fix:
update:优化禁用逻辑
This commit is contained in:
tt committed 2023-07-26 10:31:33 +08:00
1 parent cf04e4c0b8
commit dbce88be88
15 files changed
+224 -198

No files matched your search

@@ -51,6 +51,7 @@ public class RemoteService extends Service {
@Override
public boolean inControl(String pkg) throws RemoteException {
Log.e(TAG, "inControl: " + RunningAppManager.getInstance().inControlTime(pkg));
return RunningAppManager.getInstance().inControlTime(pkg);
}
@@ -125,23 +125,23 @@ public class MainSPresenter implements MainSContact.Presenter {
NetInterfaceManager.getInstance().getSnInfo(true, getLifecycle(), new NetInterfaceManager.ObserverCallback() {
@Override
public void onSubscribe(Disposable d) {
Log.e("getSnInfo", "onSubscribe: ");
Log.e("getSnInfom", "onSubscribe: ");
}
@Override
public void onNext(BaseResponse response) {
Log.e("getSnInfo", "onNext: ");
Log.e("getSnInfom", "onNext: " + response);
mView.setSnInfo(response);
}
@Override
public void onError(Throwable e) {
Log.e("getSnInfo", "onError: " + e.getMessage());
Log.e("getSnInfom", "onError: " + e.getMessage());
}
@Override
public void onComplete() {
Log.e("getSnInfo", "onComplete: ");
Log.e("getSnInfom", "onComplete: ");
}
});
}
@@ -125,6 +125,7 @@ public class MainService extends Service implements MainSContact.MainView, Netwo
mPresenter.getSnInfo();
mPresenter.getAppAndWhite();
SPUtils.put(MainService.this, CommonConfig.JGY_FIRST_BOOT, 1);
tPushInit();
}
}
}, 15000);
@@ -242,6 +243,7 @@ public class MainService extends Service implements MainSContact.MainView, Netwo
@Override
public void onReceiveLocation(BDLocation bdLocation) {
Log.e("initConfig", "onReceiveLocation: ");
locationClient.stop();
}
});
}