mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
b0139a4ea0
commit
5d06d6877a
|
@ -3727,17 +3727,18 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
properties.setValue(full ? "full_asked" : "images_asked", message.id, true);
|
properties.setValue(full ? "full_asked" : "images_asked", message.id, true);
|
||||||
|
|
||||||
SharedPreferences.Editor editor = prefs.edit();
|
SharedPreferences.Editor editor = prefs.edit();
|
||||||
for (Address sender : message.from) {
|
if (message.from != null)
|
||||||
String from = ((InternetAddress) sender).getAddress();
|
for (Address sender : message.from) {
|
||||||
if (TextUtils.isEmpty(from))
|
String from = ((InternetAddress) sender).getAddress();
|
||||||
continue;
|
if (TextUtils.isEmpty(from))
|
||||||
int at = from.indexOf('@');
|
continue;
|
||||||
String domain = (at < 0 ? from : from.substring(at));
|
int at = from.indexOf('@');
|
||||||
editor.putBoolean(from + (full ? ".show_full" : ".show_images"),
|
String domain = (at < 0 ? from : from.substring(at));
|
||||||
cbNotAgain.isChecked());
|
editor.putBoolean(from + (full ? ".show_full" : ".show_images"),
|
||||||
editor.putBoolean(domain + (full ? ".show_full" : ".show_images"),
|
cbNotAgain.isChecked());
|
||||||
cbNotAgain.isChecked() && cbNotAgainDomain.isChecked());
|
editor.putBoolean(domain + (full ? ".show_full" : ".show_images"),
|
||||||
}
|
cbNotAgain.isChecked() && cbNotAgainDomain.isChecked());
|
||||||
|
}
|
||||||
editor.apply();
|
editor.apply();
|
||||||
|
|
||||||
if (full)
|
if (full)
|
||||||
|
|
Loading…
Reference in New Issue