2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.notice;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.view.View;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.z.d.m;
|
|
|
|
import c0.z.d.o;
|
2021-08-09 22:51:56 +00:00
|
|
|
import com.discord.R;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.utilities.view.extensions.ViewExtensions;
|
|
|
|
import com.google.android.material.textfield.TextInputLayout;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
import kotlin.jvm.functions.Function2;
|
|
|
|
/* compiled from: WidgetNoticeDialog.kt */
|
|
|
|
public final class WidgetNoticeDialog$Companion$showInputModal$1 extends o implements Function1<View, Unit> {
|
|
|
|
public final /* synthetic */ Function2 $onOKClicked;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetNoticeDialog$Companion$showInputModal$1(Function2 function2) {
|
|
|
|
super(1);
|
|
|
|
this.$onOKClicked = function2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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, "view");
|
|
|
|
Function2 function2 = this.$onOKClicked;
|
|
|
|
Context context = view.getContext();
|
|
|
|
m.checkNotNullExpressionValue(context, "view.context");
|
2021-08-09 22:51:56 +00:00
|
|
|
View findViewById = view.findViewById(R.id.view_input);
|
2021-08-03 07:33:18 +00:00
|
|
|
m.checkNotNullExpressionValue(findViewById, "view.findViewById<TextIn…tLayout>(R.id.view_input)");
|
|
|
|
function2.invoke(context, ViewExtensions.getTextOrEmpty((TextInputLayout) findViewById));
|
|
|
|
}
|
|
|
|
}
|