From e7550d12b4e0a88633852db5968c83ba3f633ff9 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 9 Jun 2021 17:12:14 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/EntityAnswer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/EntityAnswer.java b/app/src/main/java/eu/faircode/email/EntityAnswer.java index b523e6e00e..1d3315e4a4 100644 --- a/app/src/main/java/eu/faircode/email/EntityAnswer.java +++ b/app/src/main/java/eu/faircode/email/EntityAnswer.java @@ -91,7 +91,7 @@ public class EntityAnswer implements Serializable { last = fullName.substring(0, c).trim(); first = fullName.substring(c + 1).trim(); } else { - c = fullName.lastIndexOf(' '); + c = fullName.indexOf(' '); if (c > 0) { first = fullName.substring(0, c).trim(); last = fullName.substring(c + 1).trim();