version:1.2.7
fix: update:优化sim卡联系人
This commit is contained in:
@@ -11,6 +11,7 @@ import com.tencent.mmkv.MMKV;
|
||||
import com.xxpatx.os.activity.main.MainActivity;
|
||||
import com.xxpatx.os.bean.DailyAppBean;
|
||||
import com.xxpatx.os.config.CommonConfig;
|
||||
import com.xxpatx.os.utils.ApkUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
@@ -43,6 +44,7 @@ public class AppStatusManager {
|
||||
this.add("com.android.contacts");
|
||||
this.add("com.android.dialer");
|
||||
this.add("com.mediatek.camera");
|
||||
this.add("cn.etouch.ecalendar");
|
||||
}};
|
||||
|
||||
|
||||
@@ -52,7 +54,17 @@ public class AppStatusManager {
|
||||
}
|
||||
this.mContext = context;
|
||||
Set<String> stringSet = mMMKV.decodeStringSet(APP_STATUS_MANAGER_KEY, defaultHiedApp);
|
||||
Log.e(TAG, "AppStatusManager: " + stringSet);
|
||||
this.hidedAppSet = stringSet;
|
||||
|
||||
if (!mMMKV.decodeBool(CommonConfig.HIDE_CALENDAR_KEY, false)) {
|
||||
removeHidedApp("cn.etouch.ecalendar");
|
||||
addHidedApp("com.youloft.calendar");
|
||||
addHidedApp("com.honghui.huangli");
|
||||
ApkUtils.uninstall(mContext, "cn.etouch.ecalendar");
|
||||
mMMKV.encode(CommonConfig.HIDE_CALENDAR_KEY, true);
|
||||
Log.e(TAG, "AppStatusManager: hide calendar");
|
||||
}
|
||||
}
|
||||
|
||||
public static void init(Context context) {
|
||||
@@ -109,7 +121,7 @@ public class AppStatusManager {
|
||||
}
|
||||
}
|
||||
if (hidedAppSet.contains("xxpatx.os.service")) {
|
||||
DailyAppBean serviceIcon = new DailyAppBean("客服中心","xxpatx.os.service");
|
||||
DailyAppBean serviceIcon = new DailyAppBean("客服中心", "xxpatx.os.service");
|
||||
dailyAppBeanList.add(0, serviceIcon);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user