53 lines
2.1 KiB
Java
53 lines
2.1 KiB
Java
package com.discord.widgets.friends;
|
|
|
|
import android.text.Editable;
|
|
import c.d.b.a.a;
|
|
import com.discord.app.AppLog;
|
|
import com.discord.utilities.logging.Logger;
|
|
import com.google.android.material.button.MaterialButton;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetFriendsAddById.kt */
|
|
public final class WidgetFriendsAddById$onViewBound$2 extends o implements Function1<Editable, Unit> {
|
|
public final /* synthetic */ WidgetFriendsAddById this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetFriendsAddById$onViewBound$2(WidgetFriendsAddById widgetFriendsAddById) {
|
|
super(1);
|
|
this.this$0 = widgetFriendsAddById;
|
|
}
|
|
|
|
/* 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(Editable editable) {
|
|
invoke(editable);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(Editable editable) {
|
|
m.checkNotNullParameter(editable, "editable");
|
|
try {
|
|
boolean z2 = true;
|
|
if (editable.length() == 0) {
|
|
WidgetFriendsAddById.access$setInputEditError(this.this$0, null);
|
|
}
|
|
MaterialButton materialButton = WidgetFriendsAddById.access$getBinding$p(this.this$0).d;
|
|
m.checkNotNullExpressionValue(materialButton, "binding.friendsAddSend");
|
|
if (editable.length() <= 0) {
|
|
z2 = false;
|
|
}
|
|
materialButton.setEnabled(z2);
|
|
} catch (Exception unused) {
|
|
AppLog appLog = AppLog.g;
|
|
StringBuilder L = a.L("Detached: ");
|
|
L.append(this.this$0.isDetached());
|
|
L.append(" Visible: ");
|
|
L.append(this.this$0.isVisible());
|
|
Logger.e$default(appLog, "Failed to update views via TextWatcher", new Exception(L.toString()), null, 4, null);
|
|
}
|
|
}
|
|
}
|