feat: 基本功能逻辑没有问题
在自动返回到桌面时,后端说有接口没有传上去,待修复。 准备升级Android Studio版本
This commit is contained in:
1 parent
ae66c33035
commit
4217eb7f8b
25 files changed
+1538
-155
No files matched your search
@@ -51,18 +51,26 @@ public class RemoteService extends Service {
|
||||
|
||||
@Override
|
||||
public boolean inControl(String pkg) throws RemoteException {
|
||||
boolean control = RunningAppManager.getInstance().inControlTime(pkg);
|
||||
Log.e(TAG, "inControl: " + control);
|
||||
return control;
|
||||
if (BuildConfig.VERSION_CODE < 88) {
|
||||
boolean control = RunningAppManager.getInstance().inControlTime(pkg);
|
||||
Log.e(TAG, "inControl: " + control);
|
||||
return control;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDisableContent(String pkg) throws RemoteException {
|
||||
String content = RunningAppManager.getInstance().getDisableContent(pkg);
|
||||
if (BuildConfig.DEBUG) {
|
||||
Log.e(TAG, "getDisableContent: " + content);
|
||||
if (BuildConfig.VERSION_CODE < 88) {
|
||||
String content = RunningAppManager.getInstance().getDisableContent(pkg);
|
||||
if (BuildConfig.DEBUG) {
|
||||
Log.e(TAG, "getDisableContent: " + content);
|
||||
}
|
||||
return content;
|
||||
} else {
|
||||
return "新版本测试";
|
||||
}
|
||||
return content;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user