Commit f215633 1 parent 16128ff commit f215633 Copy full SHA for f215633
File tree 1 file changed +8
-6
lines changed
app/src/main/java/com/osfans/trime/core
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,11 @@ public static String getComposingText() {
197
197
198
198
public Rime (boolean full_check ) {
199
199
startup (full_check );
200
- self = this ;
200
+ }
201
+
202
+ public static void destroy () {
203
+ exitRime ();
204
+ self = null ;
201
205
}
202
206
203
207
public static void initSchema () {
@@ -228,8 +232,9 @@ private static void startup(boolean full_check) {
228
232
}
229
233
230
234
public static void deploy () {
231
- exitRime ();
232
- startup (true );
235
+ destroy ();
236
+ Rime .get (true );
237
+ OpenCCDictManager .buildOpenCCDict ();
233
238
}
234
239
235
240
public static String getCommitText () {
@@ -358,9 +363,6 @@ public static boolean selectSchema(String schemaId) {
358
363
359
364
public static Rime get (boolean full_check ) {
360
365
if (self == null ) {
361
- if (full_check ) {
362
- OpenCCDictManager .buildOpenCCDict ();
363
- }
364
366
self = new Rime (full_check );
365
367
}
366
368
return self ;
You can’t perform that action at this time.
0 commit comments