version:1.8.1
fix: update:增加年级选择
This commit is contained in:
@@ -359,6 +359,17 @@ public class OpenApkUtils {
|
||||
|
||||
/**
|
||||
* page_navigate 写死传0
|
||||
* <p>
|
||||
* key:"page_navigate" 说明:
|
||||
* 0:主页
|
||||
* 3:收藏夹
|
||||
* 4:错题本
|
||||
* 7:考点学测
|
||||
* 8:一键诊断
|
||||
* 组卷中心:5
|
||||
* 阶段测:1
|
||||
* 专项测:2
|
||||
* <p>
|
||||
* appoint_subject_list 不需要传
|
||||
* appoint_period_name 这个是学段,一定要传 ,
|
||||
* <p>
|
||||
@@ -379,12 +390,15 @@ public class OpenApkUtils {
|
||||
Toaster.show("应用未安装");
|
||||
return false;
|
||||
}
|
||||
String grade = mMMKV.decodeString(CommonConfig.APPOINT_PERIOD_NAME, NAME_PRIMARY_SCHOOL);
|
||||
ComponentName cn = new ComponentName(packageName, className);
|
||||
Intent intent = new Intent();
|
||||
intent.setComponent(cn);
|
||||
intent.putExtra("page_navigate", page);
|
||||
intent.putExtra("appoint_subject_name", subject);
|
||||
intent.putExtra("appoint_period_name", NAME_HIGH_SCHOOL);
|
||||
if (!TextUtils.isEmpty(subject)) {
|
||||
intent.putExtra("appoint_subject_name", subject);
|
||||
}
|
||||
intent.putExtra("appoint_period_name", grade);
|
||||
intent.addCategory(Intent.CATEGORY_LAUNCHER);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user