- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
119 lines
6.1 KiB
Java
119 lines
6.1 KiB
Java
package androidx.core.widget;
|
|
|
|
import android.text.Editable;
|
|
import android.text.TextWatcher;
|
|
import android.widget.TextView;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function4;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@SourceDebugExtension({"SMAP\nTextView.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TextView.kt\nandroidx/core/widget/TextViewKt\n*L\n1#1,88:1\n55#1,12:89\n84#1,3:101\n55#1,12:104\n84#1,3:116\n55#1,12:119\n84#1,3:131\n*S KotlinDebug\n*F\n+ 1 TextView.kt\nandroidx/core/widget/TextViewKt\n*L\n30#1:89,12\n30#1:101,3\n39#1:104,12\n39#1:116,3\n48#1:119,12\n48#1:131,3\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public final class TextViewKt {
|
|
public static final TextWatcher addTextChangedListener(TextView textView, Function4 function4, Function4 function42, Function1 function1) {
|
|
TextViewKt$addTextChangedListener$textWatcher$1 textViewKt$addTextChangedListener$textWatcher$1 = new TextViewKt$addTextChangedListener$textWatcher$1(function1, function4, function42);
|
|
textView.addTextChangedListener(textViewKt$addTextChangedListener$textWatcher$1);
|
|
return textViewKt$addTextChangedListener$textWatcher$1;
|
|
}
|
|
|
|
public static /* synthetic */ TextWatcher addTextChangedListener$default(TextView textView, Function4 function4, Function4 function42, Function1 function1, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
function4 = new Function4() { // from class: androidx.core.widget.TextViewKt$addTextChangedListener$1
|
|
public final void invoke(CharSequence charSequence, int i2, int i3, int i4) {
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function4
|
|
public /* bridge */ /* synthetic */ Object invoke(Object obj2, Object obj3, Object obj4, Object obj5) {
|
|
invoke((CharSequence) obj2, ((Number) obj3).intValue(), ((Number) obj4).intValue(), ((Number) obj5).intValue());
|
|
return Unit.INSTANCE;
|
|
}
|
|
};
|
|
}
|
|
if ((i & 2) != 0) {
|
|
function42 = new Function4() { // from class: androidx.core.widget.TextViewKt$addTextChangedListener$2
|
|
public final void invoke(CharSequence charSequence, int i2, int i3, int i4) {
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function4
|
|
public /* bridge */ /* synthetic */ Object invoke(Object obj2, Object obj3, Object obj4, Object obj5) {
|
|
invoke((CharSequence) obj2, ((Number) obj3).intValue(), ((Number) obj4).intValue(), ((Number) obj5).intValue());
|
|
return Unit.INSTANCE;
|
|
}
|
|
};
|
|
}
|
|
if ((i & 4) != 0) {
|
|
function1 = new Function1() { // from class: androidx.core.widget.TextViewKt$addTextChangedListener$3
|
|
public final void invoke(Editable editable) {
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Object invoke(Object obj2) {
|
|
invoke((Editable) obj2);
|
|
return Unit.INSTANCE;
|
|
}
|
|
};
|
|
}
|
|
TextViewKt$addTextChangedListener$textWatcher$1 textViewKt$addTextChangedListener$textWatcher$1 = new TextViewKt$addTextChangedListener$textWatcher$1(function1, function4, function42);
|
|
textView.addTextChangedListener(textViewKt$addTextChangedListener$textWatcher$1);
|
|
return textViewKt$addTextChangedListener$textWatcher$1;
|
|
}
|
|
|
|
public static final TextWatcher doAfterTextChanged(TextView textView, final Function1 function1) {
|
|
TextWatcher textWatcher = new TextWatcher() { // from class: androidx.core.widget.TextViewKt$doAfterTextChanged$$inlined$addTextChangedListener$default$1
|
|
@Override // android.text.TextWatcher
|
|
public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
}
|
|
|
|
@Override // android.text.TextWatcher
|
|
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
}
|
|
|
|
@Override // android.text.TextWatcher
|
|
public void afterTextChanged(Editable editable) {
|
|
Function1.this.invoke(editable);
|
|
}
|
|
};
|
|
textView.addTextChangedListener(textWatcher);
|
|
return textWatcher;
|
|
}
|
|
|
|
public static final TextWatcher doBeforeTextChanged(TextView textView, final Function4 function4) {
|
|
TextWatcher textWatcher = new TextWatcher() { // from class: androidx.core.widget.TextViewKt$doBeforeTextChanged$$inlined$addTextChangedListener$default$1
|
|
@Override // android.text.TextWatcher
|
|
public void afterTextChanged(Editable editable) {
|
|
}
|
|
|
|
@Override // android.text.TextWatcher
|
|
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
}
|
|
|
|
@Override // android.text.TextWatcher
|
|
public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
Function4.this.invoke(charSequence, Integer.valueOf(i), Integer.valueOf(i2), Integer.valueOf(i3));
|
|
}
|
|
};
|
|
textView.addTextChangedListener(textWatcher);
|
|
return textWatcher;
|
|
}
|
|
|
|
public static final TextWatcher doOnTextChanged(TextView textView, final Function4 function4) {
|
|
TextWatcher textWatcher = new TextWatcher() { // from class: androidx.core.widget.TextViewKt$doOnTextChanged$$inlined$addTextChangedListener$default$1
|
|
@Override // android.text.TextWatcher
|
|
public void afterTextChanged(Editable editable) {
|
|
}
|
|
|
|
@Override // android.text.TextWatcher
|
|
public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
}
|
|
|
|
@Override // android.text.TextWatcher
|
|
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
Function4.this.invoke(charSequence, Integer.valueOf(i), Integer.valueOf(i2), Integer.valueOf(i3));
|
|
}
|
|
};
|
|
textView.addTextChangedListener(textWatcher);
|
|
return textWatcher;
|
|
}
|
|
}
|