Update Init.java

This commit is contained in:
FongMi 2023-01-03 16:46:25 +08:00
parent 0c492b3c75
commit 4862368548
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ public class Init {
} }
public Init() { public Init() {
this.ali = new Ali();
this.handler = new Handler(Looper.getMainLooper()); this.handler = new Handler(Looper.getMainLooper());
} }
@ -36,7 +37,7 @@ public class Init {
} }
public static Ali getAli() { public static Ali getAli() {
return get().ali = get().ali == null ? new Ali() : get().ali; return get().ali;
} }
public static void setAli(Ali ali) { public static void setAli(Ali ali) {