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:
parent
34f1ae929b
commit
bce800a855
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue