mirror of https://github.com/M66B/FairEmail.git
Save classifier model only when loaded
This commit is contained in:
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…
Reference in New Issue