mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Updated all message lists on keyword color change
This commit is contained in:
@@ -324,10 +324,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
private static final int REQUEST_EMPTY_FOLDER = 20;
|
||||
private static final int REQUEST_BOUNDARY_RETRY = 21;
|
||||
static final int REQUEST_PICK_CONTACT = 22;
|
||||
static final int REQUEST_KEYWORDS = 23;
|
||||
|
||||
static final String ACTION_STORE_RAW = BuildConfig.APPLICATION_ID + ".STORE_RAW";
|
||||
static final String ACTION_DECRYPT = BuildConfig.APPLICATION_ID + ".DECRYPT";
|
||||
static final String ACTION_KEYWORDS = BuildConfig.APPLICATION_ID + ".KEYWORDS";
|
||||
|
||||
private static final long REVIEW_ASK_DELAY = 21 * 24 * 3600 * 1000L; // milliseconds
|
||||
private static final long REVIEW_LATER_DELAY = 3 * 24 * 3600 * 1000L; // milliseconds
|
||||
@@ -3184,6 +3184,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
IntentFilter iff = new IntentFilter();
|
||||
iff.addAction(ACTION_STORE_RAW);
|
||||
iff.addAction(ACTION_DECRYPT);
|
||||
iff.addAction(ACTION_KEYWORDS);
|
||||
lbm.registerReceiver(receiver, iff);
|
||||
|
||||
ConnectivityManager cm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
@@ -4829,6 +4830,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
onStoreRaw(intent);
|
||||
else if (ACTION_DECRYPT.equals(action))
|
||||
onDecrypt(intent);
|
||||
else if (ACTION_KEYWORDS.equals(action))
|
||||
adapter.notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -5050,9 +5053,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
if (resultCode == RESULT_OK && data != null)
|
||||
onPickContact(data.getData());
|
||||
break;
|
||||
case REQUEST_KEYWORDS:
|
||||
adapter.notifyDataSetChanged();
|
||||
break;
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
|
||||
Reference in New Issue
Block a user