feat: 启动时重建设备信息缓存

This commit is contained in:
niushuai233 2022-10-24 17:43:39 +08:00
parent 211b18ff12
commit 05a79e5094

View File

@ -2,6 +2,7 @@ package cc.niushuai.project.devcontrol.base;
import android.content.Context;
import cc.niushuai.project.devcontrol.base.util.GlobalVariables;
import cc.niushuai.project.devcontrol.db.DB;
public class App {
@ -10,6 +11,8 @@ public class App {
// 初始化数据库
initDb(context);
// 重建设备信息缓存
GlobalVariables.initDeviceInfoMap();
}
private static void initDb(Context context) {