mirror of
https://github.com/niushuai233/DevControl.git
synced 2024-10-27 22:43:20 +08:00
feat: 启动时重建设备信息缓存
This commit is contained in:
parent
211b18ff12
commit
05a79e5094
@ -2,6 +2,7 @@ package cc.niushuai.project.devcontrol.base;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
|
import cc.niushuai.project.devcontrol.base.util.GlobalVariables;
|
||||||
import cc.niushuai.project.devcontrol.db.DB;
|
import cc.niushuai.project.devcontrol.db.DB;
|
||||||
|
|
||||||
public class App {
|
public class App {
|
||||||
@ -10,6 +11,8 @@ public class App {
|
|||||||
|
|
||||||
// 初始化数据库
|
// 初始化数据库
|
||||||
initDb(context);
|
initDb(context);
|
||||||
|
// 重建设备信息缓存
|
||||||
|
GlobalVariables.initDeviceInfoMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void initDb(Context context) {
|
private static void initDb(Context context) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user