update:2021.02.26
fix:
add:增加应用市场管控
This commit is contained in:
2021-02-26 18:23:02 +08:00
parent 277dbf3c3e
commit cf086bcb0d
5 changed files with 28 additions and 20 deletions

View File

@@ -652,6 +652,7 @@ public class ApkUtils {
//根据需求内置
this.add("com.easyclient.activity");//移动课堂
this.add("com.jiandan.mobilelesson");//简单课堂
this.add("com.jiaoguanyi.store");//教官壹
}};

View File

@@ -218,8 +218,8 @@ public class Configure {
public final static String GET_SN_TIME_CONTROL = HTTP_TAG_HEAD_NEW + "Sn/getSnTimeControl";
//获取时间管控
public final static String GET_TOP_APP_CONTROL = HTTP_TAG_HEAD_NEW + "Sn/getSnAppControl";
//获取时间管控
//获取顶部app管控
public final static String GET_SN_APP_TEST = HTTP_TAG_HEAD_NEW + "Sn/getSnAppTest";
//获取时间管控
//获取测试app
}

View File

@@ -28,8 +28,11 @@ public class ForegroundAppUtil {
}
public static void openTopApp(Context context) {
String packages = ForegroundAppUtil.getForegroundPackageName(context);
String topAppName = (String) SPUtils.get(context, ForegroundAppUtil.TOPAPP_KEY, "");
if (TextUtils.isEmpty(topAppName)) {
return;
}
String packages = ForegroundAppUtil.getForegroundPackageName(context);
Log.e("openTopApp", "old:" + topAppName);
if (!TextUtils.isEmpty(topAppName)) {