feat: 集成Bugly崩溃上报并新增计算器禁用功能
- 在BaseApplication中初始化Bugly崩溃上报,设置设备型号和序列号 - 新增计算器应用禁用开关,默认禁止使用 - 调整相机和时钟禁用开关的默认值为禁止 - 升级版本号至1.6.0920(versionCode 211) - build.gradle添加Bugly依赖 Conventional Commits格式的标题应简洁,现改为: feat: 集成Bugly并新增计算器禁用功能
This commit is contained in:
@@ -191,7 +191,7 @@ public class ItemClickHandler {
|
||||
switch (pkg) {
|
||||
case "com.mediatek.camera":
|
||||
case "com.android.camera2":
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_camera", 0) == 1) {
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_camera", 1) == 1) {
|
||||
Toaster.show("摄像头已禁止使用");
|
||||
return true;
|
||||
}
|
||||
@@ -209,7 +209,7 @@ public class ItemClickHandler {
|
||||
}
|
||||
break;
|
||||
case "com.android.deskclock":
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_deskclock", 0) == 1) {
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_deskclock", 1) == 1) {
|
||||
Toaster.show("时钟已禁止使用");
|
||||
return true;
|
||||
}
|
||||
@@ -239,6 +239,13 @@ public class ItemClickHandler {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "com.android.calculator":
|
||||
case "com.android.calculator2":
|
||||
if (Settings.System.getInt(context.getContentResolver(), "aole_app_calculator", 1) == 1) {
|
||||
Toaster.show("计算器已禁止使用");
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user