36 lines
1.6 KiB
Java
36 lines
1.6 KiB
Java
package com.discord.widgets.settings.premium;
|
|
|
|
import android.widget.TextView;
|
|
import com.discord.utilities.view.extensions.ViewExtensions;
|
|
import com.google.android.material.textfield.TextInputLayout;
|
|
import d0.g0.t;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetSettingsGifting.kt */
|
|
public final class WidgetSettingsGifting$onViewBound$2 extends o implements Function1<TextView, Unit> {
|
|
public final /* synthetic */ WidgetSettingsGifting this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetSettingsGifting$onViewBound$2(WidgetSettingsGifting widgetSettingsGifting) {
|
|
super(1);
|
|
this.this$0 = widgetSettingsGifting;
|
|
}
|
|
|
|
/* 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(TextView textView) {
|
|
invoke(textView);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(TextView textView) {
|
|
m.checkNotNullParameter(textView, "it");
|
|
TextInputLayout textInputLayout = WidgetSettingsGifting.access$getBinding$p(this.this$0).k;
|
|
m.checkNotNullExpressionValue(textInputLayout, "binding.settingsGiftingGiftCodeInputWrap");
|
|
WidgetSettingsGifting.access$getViewModel$p(this.this$0).redeemGiftCode(t.replace$default(ViewExtensions.getTextOrEmpty(textInputLayout), "https://discord.gift/", "", false, 4, (Object) null), this.this$0);
|
|
}
|
|
}
|