From ccade9bbd3790c81cde5071235f3687fb1d53c9d Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 4 Jun 2021 19:59:08 +0200 Subject: [PATCH] FTS: index empty messages --- app/src/main/java/eu/faircode/email/WorkerFts.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/WorkerFts.java b/app/src/main/java/eu/faircode/email/WorkerFts.java index ba74757a2c..39e152a3d4 100644 --- a/app/src/main/java/eu/faircode/email/WorkerFts.java +++ b/app/src/main/java/eu/faircode/email/WorkerFts.java @@ -21,7 +21,6 @@ package eu.faircode.email; import android.content.Context; import android.content.SharedPreferences; -import android.text.TextUtils; import androidx.annotation.NonNull; import androidx.preference.PreferenceManager; @@ -80,10 +79,8 @@ public class WorkerFts extends Worker { File file = message.getFile(context); String text = HtmlHelper.getFullText(file); - if (TextUtils.isEmpty(text)) { - Log.i("FTS empty"); - continue; - } + if (text == null) + text = ""; boolean fts = prefs.getBoolean("fts", false); if (!fts)