42 lines
2.0 KiB
Java
42 lines
2.0 KiB
Java
package com.discord.widgets.chat.list.adapter;
|
|
|
|
import android.view.View;
|
|
import com.discord.models.message.Message;
|
|
import com.discord.utilities.view.text.LinkifiedTextView;
|
|
import com.discord.widgets.chat.list.adapter.WidgetChatListAdapter;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetChatListAdapterItemSystemMessage.kt */
|
|
public final class WidgetChatListAdapterItemSystemMessage$onConfigure$2 extends o implements Function1<View, Unit> {
|
|
public final /* synthetic */ Message $message;
|
|
public final /* synthetic */ WidgetChatListAdapterItemSystemMessage this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetChatListAdapterItemSystemMessage$onConfigure$2(WidgetChatListAdapterItemSystemMessage widgetChatListAdapterItemSystemMessage, Message message) {
|
|
super(1);
|
|
this.this$0 = widgetChatListAdapterItemSystemMessage;
|
|
this.$message = message;
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(View view) {
|
|
invoke(view);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(View view) {
|
|
m.checkNotNullParameter(view, "it");
|
|
WidgetChatListAdapter.EventHandler eventHandler = WidgetChatListAdapterItemSystemMessage.access$getAdapter$p(this.this$0).getEventHandler();
|
|
Message message = this.$message;
|
|
LinkifiedTextView linkifiedTextView = WidgetChatListAdapterItemSystemMessage.access$getBinding$p(this.this$0).f1745c;
|
|
m.checkNotNullExpressionValue(linkifiedTextView, "binding.systemText");
|
|
CharSequence text = linkifiedTextView.getText();
|
|
m.checkNotNullExpressionValue(text, "binding.systemText.text");
|
|
eventHandler.onMessageLongClicked(message, text, false);
|
|
}
|
|
}
|