version:1.6.0403
bugfixes: add:增加时间管控
This commit is contained in:
1 parent
2029f7020f
commit
b9c5337032
14 files changed
+334
-36
No files matched your search
@@ -6,6 +6,7 @@ import android.util.Log;
|
||||
|
||||
import com.aoleyun.sn.comm.CommonConfig;
|
||||
import com.aoleyun.sn.utils.JgyUtils;
|
||||
import com.hjq.toast.Toaster;
|
||||
import com.tencent.mmkv.MMKV;
|
||||
|
||||
public class AoleyunActivityController extends IActivityController.Stub {
|
||||
@@ -20,10 +21,15 @@ public class AoleyunActivityController extends IActivityController.Stub {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
//false 则不会启动,直接返回。
|
||||
if (JgyUtils.getInstance().isCloudLessonMod(pkg)) {
|
||||
return true;
|
||||
if (JgyUtils.getInstance().checkTimePeriod(pkg)) {
|
||||
//false 则不会启动,直接返回。
|
||||
if (JgyUtils.getInstance().isCloudLessonMod(pkg)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
Toaster.show("专注模式只允许使用指定应用");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user