mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Save classifier model only when loaded
This commit is contained in:
@@ -220,6 +220,8 @@ public class MessageClassifier {
|
||||
}
|
||||
|
||||
static synchronized void save(Context context) throws JSONException, IOException {
|
||||
if (!loaded)
|
||||
return;
|
||||
if (!isEnabled(context))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user