discord-jadx/app/src/main/java/com/discord/widgets/stickers/UnsendableStickerPremiumUps...

60 lines
3.0 KiB
Java

package com.discord.widgets.stickers;
import android.view.View;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import c.a.k.b;
import c.d.b.a.a;
import com.discord.R;
import com.discord.app.AppDialog;
import com.discord.databinding.StickerPremiumUpsellDialogBinding;
import com.discord.utilities.analytics.AnalyticsTracker;
import com.discord.utilities.analytics.Traits;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import d0.z.d.m;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: UnsendableStickerPremiumUpsellDialog.kt */
public final class UnsendableStickerPremiumUpsellDialog extends AppDialog {
public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.a0(UnsendableStickerPremiumUpsellDialog.class, "binding", "getBinding()Lcom/discord/databinding/StickerPremiumUpsellDialogBinding;", 0)};
public static final Companion Companion = new Companion(null);
private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, UnsendableStickerPremiumUpsellDialog$binding$2.INSTANCE, null, 2, null);
/* compiled from: UnsendableStickerPremiumUpsellDialog.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final void show(FragmentManager fragmentManager) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
new UnsendableStickerPremiumUpsellDialog().show(fragmentManager, UnsendableStickerPremiumUpsellDialog.class.getSimpleName());
AnalyticsTracker.premiumUpsellViewed$default(AnalyticsTracker.INSTANCE, AnalyticsTracker.PremiumUpsellType.StickerPickerUpsell, new Traits.Location(null, Traits.Location.Section.STICKER_PICKER_UPSELL, null, null, null, 29, null), null, null, 12, null);
}
}
public UnsendableStickerPremiumUpsellDialog() {
super(R.layout.sticker_premium_upsell_dialog);
}
private final StickerPremiumUpsellDialogBinding getBinding() {
return (StickerPremiumUpsellDialogBinding) this.binding$delegate.getValue((Fragment) this, $$delegatedProperties[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
TextView textView = getBinding().f1659c;
m.checkNotNullExpressionValue(textView, "binding.stickerPremiumUpsellDescription");
textView.setText(b.k(this, R.string.premium_upsell_global_stickers_description_mobile, new Object[0], null, 4));
getBinding().b.setOnClickListener(new UnsendableStickerPremiumUpsellDialog$onViewBound$1(this));
getBinding().d.setOnClickListener(new UnsendableStickerPremiumUpsellDialog$onViewBound$2(this));
}
}