Save classifier model only when loaded

pull/190/head
M66B 4 years ago
parent 34f1ae929b
commit bce800a855

@ -220,6 +220,8 @@ public class MessageClassifier {
}
static synchronized void save(Context context) throws JSONException, IOException {
if (!loaded)
return;
if (!isEnabled(context))
return;

Loading…
Cancel
Save