41 lines
1.8 KiB
Java
41 lines
1.8 KiB
Java
package com.discord.utilities.view.extensions;
|
|
|
|
import android.view.KeyEvent;
|
|
import android.widget.TextView;
|
|
import com.google.android.material.textfield.TextInputLayout;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function3;
|
|
/* compiled from: ViewExtensions.kt */
|
|
public final class ViewExtensions$setOnImeActionDone$1 extends o implements Function3<TextView, Integer, KeyEvent, Boolean> {
|
|
public final /* synthetic */ boolean $isEventConsumed;
|
|
public final /* synthetic */ Function1 $onImeActionDone;
|
|
public final /* synthetic */ TextInputLayout $this_setOnImeActionDone;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public ViewExtensions$setOnImeActionDone$1(TextInputLayout textInputLayout, Function1 function1, boolean z2) {
|
|
super(3);
|
|
this.$this_setOnImeActionDone = textInputLayout;
|
|
this.$onImeActionDone = function1;
|
|
this.$isEventConsumed = z2;
|
|
}
|
|
|
|
/* 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, java.lang.Object, java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function3
|
|
public /* bridge */ /* synthetic */ Boolean invoke(TextView textView, Integer num, KeyEvent keyEvent) {
|
|
return Boolean.valueOf(invoke(textView, num.intValue(), keyEvent));
|
|
}
|
|
|
|
public final boolean invoke(TextView textView, int i, KeyEvent keyEvent) {
|
|
m.checkNotNullParameter(textView, "textView");
|
|
if (i == 6) {
|
|
if (ViewExtensions.getTextOrEmpty(this.$this_setOnImeActionDone).length() > 0) {
|
|
this.$onImeActionDone.invoke(textView);
|
|
}
|
|
}
|
|
return this.$isEventConsumed;
|
|
}
|
|
}
|