Refactoring

This commit is contained in:
M66B 2023-06-28 08:04:03 +02:00
parent 068034a5f9
commit 14b04b15c5
1 changed files with 2 additions and 5 deletions

View File

@ -5132,11 +5132,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
private void onInsertContact(String name, String email) {
if (TextUtils.isEmpty(name)) {
int at = email.indexOf('@');
if (at > 0)
name = email.substring(0, at);
}
if (TextUtils.isEmpty(name))
name = UriHelper.getEmailUser(email);
// https://developer.android.com/training/contacts-provider/modify-data
Intent insert = new Intent();