version:4.0
fix: update:增加主页几个管控
This commit is contained in:
@@ -65,6 +65,7 @@ import com.uiui.aios.utils.ApkUtils;
|
||||
import com.uiui.aios.utils.AppUtil;
|
||||
import com.uiui.aios.utils.NetStateUtils;
|
||||
import com.uiui.aios.utils.SchemeUtils;
|
||||
import com.uiui.aios.utils.ToastUtil;
|
||||
import com.uiui.aios.utils.Utils;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
@@ -144,7 +145,7 @@ public class CustomFragment extends Fragment implements NetworkUtils.OnNetworkSt
|
||||
private NotificationAdapter notificationAdapter;
|
||||
// private AlarmClockAdapter alarmClockAdapter;
|
||||
private SOSNnmberAdapter sosNnmberAdapter;
|
||||
private MMKV mmkv;
|
||||
private MMKV mMMKV;
|
||||
private Activity mContext;
|
||||
private ContentResolver mCRv;
|
||||
|
||||
@@ -192,7 +193,7 @@ public class CustomFragment extends Fragment implements NetworkUtils.OnNetworkSt
|
||||
mParam1 = getArguments().getString(ARG_PARAM1);
|
||||
mParam2 = getArguments().getString(ARG_PARAM2);
|
||||
}
|
||||
mmkv = MMKV.defaultMMKV();
|
||||
mMMKV = MMKV.defaultMMKV();
|
||||
}
|
||||
|
||||
|
||||
@@ -526,6 +527,11 @@ public class CustomFragment extends Fragment implements NetworkUtils.OnNetworkSt
|
||||
}
|
||||
|
||||
private void openScheme(String uri) {
|
||||
int is_health = mMMKV.decodeInt("is_health", 0);
|
||||
if (is_health == 0) {
|
||||
ToastUtil.show("AI健康功能已关闭");
|
||||
return;
|
||||
}
|
||||
SingleDialog dialog = new SingleDialog(mContext);
|
||||
dialog.setTitle("温馨提示")
|
||||
.setMessage("网络不可用")
|
||||
|
||||
Reference in New Issue
Block a user