discord-jadx/app/src/main/java/com/discord/widgets/servers/WidgetServerSettingsVanityU...

40 lines
2.4 KiB
Java

package com.discord.widgets.servers;
import android.view.View;
import android.widget.TextView;
import com.discord.widgets.servers.WidgetServerSettingsVanityUrl;
import com.google.android.material.textfield.TextInputLayout;
import d0.z.d.m;
/* compiled from: WidgetServerSettingsVanityUrl.kt */
public final class WidgetServerSettingsVanityUrl$onViewBound$1 implements View.OnFocusChangeListener {
public final /* synthetic */ WidgetServerSettingsVanityUrl this$0;
public WidgetServerSettingsVanityUrl$onViewBound$1(WidgetServerSettingsVanityUrl widgetServerSettingsVanityUrl) {
this.this$0 = widgetServerSettingsVanityUrl;
}
@Override // android.view.View.OnFocusChangeListener
public final void onFocusChange(View view, boolean z2) {
if (!z2) {
WidgetServerSettingsVanityUrl.Companion companion = WidgetServerSettingsVanityUrl.Companion;
TextView textView = WidgetServerSettingsVanityUrl.access$getBinding$p(this.this$0).h;
m.checkNotNullExpressionValue(textView, "binding.serverSettingsVanityUrlPrefix");
WidgetServerSettingsVanityUrl.Companion.access$translateToOriginX(companion, textView);
TextInputLayout textInputLayout = WidgetServerSettingsVanityUrl.access$getBinding$p(this.this$0).b;
m.checkNotNullExpressionValue(textInputLayout, "binding.serverSettingsVanityInput");
WidgetServerSettingsVanityUrl.Companion.access$translateToOriginX(companion, textInputLayout);
return;
}
TextView textView2 = WidgetServerSettingsVanityUrl.access$getBinding$p(this.this$0).h;
m.checkNotNullExpressionValue(textView2, "binding.serverSettingsVanityUrlPrefix");
int width = textView2.getWidth();
WidgetServerSettingsVanityUrl.Companion companion2 = WidgetServerSettingsVanityUrl.Companion;
TextView textView3 = WidgetServerSettingsVanityUrl.access$getBinding$p(this.this$0).h;
m.checkNotNullExpressionValue(textView3, "binding.serverSettingsVanityUrlPrefix");
WidgetServerSettingsVanityUrl.Companion.access$translateLeft(companion2, textView3, width);
TextInputLayout textInputLayout2 = WidgetServerSettingsVanityUrl.access$getBinding$p(this.this$0).b;
m.checkNotNullExpressionValue(textInputLayout2, "binding.serverSettingsVanityInput");
WidgetServerSettingsVanityUrl.Companion.access$translateLeft(companion2, textInputLayout2, width);
}
}