1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Save classifier model only when loaded

This commit is contained in:
M66B 2021-01-02 22:39:30 +01:00
parent 34f1ae929b
commit bce800a855

View file

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