Messaging: Let there be lambdas
Change-Id: Iee1fc46c92ea9159abb10d92d34baee937bdee0c
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2015 The Android Open Source Project
|
||||
* Copyright (C) 2024 The LineageOS Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -22,7 +23,6 @@ import android.net.Uri;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
|
||||
import com.android.messaging.R;
|
||||
import com.android.messaging.datamodel.data.ParticipantData;
|
||||
@@ -134,13 +134,8 @@ public class ContactIconView extends AsyncImageView {
|
||||
&& !TextUtils.isEmpty(mContactLookupKey)) ||
|
||||
!TextUtils.isEmpty(mNormalizedDestination)) {
|
||||
if (!mDisableClickHandler) {
|
||||
setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(final View view) {
|
||||
ContactUtil.showOrAddContact(view, mContactId, mContactLookupKey,
|
||||
mAvatarUri, mNormalizedDestination);
|
||||
}
|
||||
});
|
||||
setOnClickListener(view -> ContactUtil.showOrAddContact(view, mContactId,
|
||||
mContactLookupKey, mAvatarUri, mNormalizedDestination));
|
||||
}
|
||||
} else {
|
||||
// This should happen when the phone number is not in the user's contacts or it is a
|
||||
|
||||
Reference in New Issue
Block a user