1.4.0628 增加爱优读,删除推送
This commit is contained in:
@@ -46,7 +46,7 @@ import com.aoleyun.os.LauncherAppWidgetInfo;
|
||||
import com.aoleyun.os.LauncherAppWidgetProviderInfo;
|
||||
import com.aoleyun.os.uiuiutils.CustomDialog;
|
||||
import com.aoleyun.os.uiuiutils.JGYUtils;
|
||||
import com.aoleyun.os.uiuiutils.ToastUtil;
|
||||
import com.hjq.toast.Toaster;
|
||||
import com.aoleyun.os.base.BaseApplication;
|
||||
import com.aoleyun.os.PromiseAppInfo;
|
||||
import com.aoleyun.os.R;
|
||||
@@ -141,7 +141,7 @@ public class ItemClickHandler {
|
||||
onClickAppShortcut(v, (WorkspaceItemInfo) tag, launcher, sourceContainer);
|
||||
dialog.dismiss();
|
||||
} else {
|
||||
ToastUtil.showCenter("密码错误");
|
||||
Toaster.show("密码错误");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,57 +187,57 @@ public class ItemClickHandler {
|
||||
return false;
|
||||
}
|
||||
if (JGYUtils.isDisable(context, pkg)) {
|
||||
ToastUtil.show("应用已被禁用");
|
||||
Toaster.show("应用已被禁用");
|
||||
return true;
|
||||
}
|
||||
switch (pkg) {
|
||||
case "com.mediatek.camera":
|
||||
case "com.android.camera2":
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_camera", 0) == 1) {
|
||||
ToastUtil.show("摄像头已禁止使用");
|
||||
Toaster.show("摄像头已禁止使用");
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "com.android.gallery3d":
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_gallery", 1) == 1) {
|
||||
ToastUtil.show("图库已禁止使用");
|
||||
Toaster.show("图库已禁止使用");
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "com.android.documentsui":
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_filemanager", 1) == 1) {
|
||||
ToastUtil.show("文件已禁止使用");
|
||||
Toaster.show("文件已禁止使用");
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "com.android.deskclock":
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_deskclock", 0) == 1) {
|
||||
ToastUtil.show("时钟已禁止使用");
|
||||
Toaster.show("时钟已禁止使用");
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "com.android.music":
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_music", 1) == 1) {
|
||||
ToastUtil.show("音乐已禁止使用");
|
||||
Toaster.show("音乐已禁止使用");
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "com.android.soundrecorder":
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_soundrecorder", 1) == 1) {
|
||||
ToastUtil.show("录音机已禁止使用");
|
||||
Toaster.show("录音机已禁止使用");
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "com.aoleyun.browser":
|
||||
case "com.android.browser":
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_browser", 1) == 1) {
|
||||
ToastUtil.show("浏览器已禁止使用");
|
||||
Toaster.show("浏览器已禁止使用");
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "com.android.messaging":
|
||||
if (Settings.System.getInt(context.getContentResolver(), "qch_app_sms", 1) == 1) {
|
||||
ToastUtil.show("短信已禁止使用");
|
||||
Toaster.show("短信已禁止使用");
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user