1.4.0318 修复升级后设置默认桌面,对接小程序管控,增加专注模式,接管系统打开app
This commit is contained in:
@@ -15,10 +15,17 @@ public class AoleyunActivityController extends IActivityController.Stub {
|
||||
@Override
|
||||
public boolean activityStarting(Intent intent, String pkg) {
|
||||
Log.e(TAG, "activityStarting: " + pkg + ", intent= " + intent);
|
||||
//retrun false;//false 则不会启动,直接返回。
|
||||
boolean status = JGYUtils.getInstance().isForbid(pkg);
|
||||
Log.e(TAG, "activityStarting: " + pkg + "start = " + status);
|
||||
return status;
|
||||
//false 则不会启动,直接返回。
|
||||
if (JGYUtils.getInstance().isCloudLessonMod(pkg)) {
|
||||
if (JGYUtils.getInstance().isForbid(pkg)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
ToastUtil.show("专注模式只允许使用指定应用");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user