32 lines
1.5 KiB
Java
32 lines
1.5 KiB
Java
package com.discord.widgets.stickers;
|
|
|
|
import android.view.View;
|
|
import androidx.fragment.app.FragmentManager;
|
|
import com.discord.api.premium.PremiumTier;
|
|
import com.discord.utilities.analytics.Traits;
|
|
import com.discord.widgets.stickers.StickerPremiumUpsellDialog;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetStickerSheet.kt */
|
|
public final class WidgetStickerSheet$configureUI$3 implements View.OnClickListener {
|
|
public final /* synthetic */ boolean $isPackEnabled;
|
|
public final /* synthetic */ PremiumTier $meUserPremiumTier;
|
|
public final /* synthetic */ WidgetStickerSheet this$0;
|
|
|
|
public WidgetStickerSheet$configureUI$3(WidgetStickerSheet widgetStickerSheet, boolean z2, PremiumTier premiumTier) {
|
|
this.this$0 = widgetStickerSheet;
|
|
this.$isPackEnabled = z2;
|
|
this.$meUserPremiumTier = premiumTier;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
if (this.$isPackEnabled && this.$meUserPremiumTier != PremiumTier.TIER_2) {
|
|
this.this$0.dismiss();
|
|
StickerPremiumUpsellDialog.Companion companion = StickerPremiumUpsellDialog.Companion;
|
|
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
|
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
|
companion.show(parentFragmentManager, new Traits.Location(null, Traits.Location.Section.STICKER_POPOUT, null, null, null, 29, null));
|
|
}
|
|
}
|
|
}
|