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.
|
||||
@@ -19,7 +20,6 @@ import android.content.Context;
|
||||
import androidx.core.text.BidiFormatter;
|
||||
import androidx.core.text.TextDirectionHeuristicsCompat;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
@@ -44,12 +44,7 @@ public class BlockedParticipantListItemView extends LinearLayout {
|
||||
protected void onFinishInflate() {
|
||||
mNameTextView = (TextView) findViewById(R.id.name);
|
||||
mContactIconView = (ContactIconView) findViewById(R.id.contact_icon);
|
||||
setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(final View v) {
|
||||
mData.unblock(getContext());
|
||||
}
|
||||
});
|
||||
setOnClickListener(v -> mData.unblock(getContext()));
|
||||
}
|
||||
|
||||
public void bind(final ParticipantListItemData data) {
|
||||
|
||||
Reference in New Issue
Block a user