2021-08-03 07:33:18 +00:00
|
|
|
package c.a.a.e;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.view.View;
|
|
|
|
import android.widget.ImageView;
|
|
|
|
import android.widget.LinearLayout;
|
|
|
|
import android.widget.RelativeLayout;
|
|
|
|
import android.widget.TextView;
|
|
|
|
import androidx.annotation.DrawableRes;
|
|
|
|
import androidx.fragment.app.Fragment;
|
|
|
|
import androidx.fragment.app.FragmentManager;
|
|
|
|
import androidx.viewpager2.adapter.FragmentStateAdapter;
|
|
|
|
import androidx.viewpager2.widget.ViewPager2;
|
2021-08-03 07:33:18 +00:00
|
|
|
import c.a.j.k5;
|
|
|
|
import c.a.j.n0;
|
2021-07-24 02:37:17 +00:00
|
|
|
import com.discord.app.AppDialog;
|
|
|
|
import com.discord.app.AppFragment;
|
|
|
|
import com.discord.utilities.analytics.AnalyticsTracker;
|
|
|
|
import com.discord.utilities.analytics.Traits;
|
|
|
|
import com.discord.utilities.view.recycler.ViewPager2ExtensionsKt;
|
|
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
|
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
|
|
|
import com.discord.widgets.settings.premium.WidgetSettingsPremium;
|
|
|
|
import com.google.android.material.button.MaterialButton;
|
|
|
|
import com.google.android.material.tabs.TabLayout;
|
|
|
|
import d0.t.n;
|
|
|
|
import d0.t.u;
|
|
|
|
import d0.z.d.k;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Objects;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
|
|
import kotlin.reflect.KProperty;
|
|
|
|
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
2021-07-28 07:39:21 +00:00
|
|
|
public final class b extends AppDialog {
|
|
|
|
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(b.class, "binding", "getBinding()Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0)};
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final C0013b j = new C0013b(null);
|
2021-07-24 02:37:17 +00:00
|
|
|
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, f.i, null, 2, null);
|
|
|
|
public e l;
|
|
|
|
|
|
|
|
/* compiled from: java-style lambda group */
|
2021-07-28 07:39:21 +00:00
|
|
|
public static final class a implements View.OnClickListener {
|
2021-07-24 02:37:17 +00:00
|
|
|
public final /* synthetic */ int i;
|
|
|
|
public final /* synthetic */ Object j;
|
|
|
|
|
2021-07-28 07:39:21 +00:00
|
|
|
public a(int i, Object obj) {
|
2021-07-24 02:37:17 +00:00
|
|
|
this.i = i;
|
|
|
|
this.j = obj;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
|
|
public final void onClick(View view) {
|
|
|
|
int i = this.i;
|
|
|
|
if (i == 0) {
|
2021-07-28 07:39:21 +00:00
|
|
|
((b) this.j).dismiss();
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (i == 1) {
|
2021-07-28 07:39:21 +00:00
|
|
|
b.g((b) this.j);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (i == 2) {
|
2021-07-28 07:39:21 +00:00
|
|
|
b.g((b) this.j);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
|
|
|
throw null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
2021-08-03 07:33:18 +00:00
|
|
|
/* renamed from: c.a.a.e.b$b reason: collision with other inner class name */
|
|
|
|
public static final class C0013b {
|
|
|
|
public C0013b(DefaultConstructorMarker defaultConstructorMarker) {
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-08-03 07:33:18 +00:00
|
|
|
public static void a(C0013b bVar, FragmentManager fragmentManager, int i, String str, String str2, String str3, String str4, String str5, String str6, boolean z2, boolean z3, int i2) {
|
2021-07-24 02:37:17 +00:00
|
|
|
if ((i2 & 4) != 0) {
|
|
|
|
str = null;
|
|
|
|
}
|
|
|
|
if ((i2 & 8) != 0) {
|
|
|
|
str2 = null;
|
|
|
|
}
|
|
|
|
if ((i2 & 16) != 0) {
|
|
|
|
str3 = null;
|
|
|
|
}
|
|
|
|
if ((i2 & 32) != 0) {
|
|
|
|
str4 = null;
|
|
|
|
}
|
|
|
|
if ((i2 & 64) != 0) {
|
|
|
|
str5 = null;
|
|
|
|
}
|
|
|
|
if ((i2 & 128) != 0) {
|
|
|
|
str6 = null;
|
|
|
|
}
|
|
|
|
if ((i2 & 256) != 0) {
|
|
|
|
z2 = true;
|
|
|
|
}
|
|
|
|
if ((i2 & 512) != 0) {
|
|
|
|
z3 = true;
|
|
|
|
}
|
|
|
|
Objects.requireNonNull(bVar);
|
|
|
|
m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
2021-07-28 07:39:21 +00:00
|
|
|
b bVar2 = new b();
|
2021-07-24 02:37:17 +00:00
|
|
|
Bundle bundle = new Bundle();
|
|
|
|
bundle.putInt("extra_page_number", i);
|
|
|
|
if (str != null) {
|
|
|
|
bundle.putString("extra_header_string", str);
|
|
|
|
}
|
|
|
|
if (str2 != null) {
|
|
|
|
bundle.putString("extra_body_text", str2);
|
|
|
|
}
|
|
|
|
bundle.putString("extra_page_name", str3);
|
|
|
|
bundle.putString("extra_section_name", str4);
|
|
|
|
bundle.putString("extra_object_name", str5);
|
|
|
|
bundle.putString("extra_object_type", str6);
|
|
|
|
bundle.putBoolean("extra_show_other_pages", z2);
|
|
|
|
bundle.putBoolean("extra_show_learn_more", z3);
|
2021-07-28 07:39:21 +00:00
|
|
|
bVar2.setArguments(bundle);
|
|
|
|
bVar2.show(fragmentManager, b.class.getName());
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
|
|
|
public static final class c {
|
|
|
|
public final int a;
|
|
|
|
public CharSequence b;
|
|
|
|
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
2021-08-04 23:47:20 +00:00
|
|
|
public CharSequence f37c;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
public c(@DrawableRes int i, CharSequence charSequence, CharSequence charSequence2) {
|
|
|
|
m.checkNotNullParameter(charSequence, "headerText");
|
|
|
|
m.checkNotNullParameter(charSequence2, "bodyText");
|
|
|
|
this.a = i;
|
|
|
|
this.b = charSequence;
|
2021-08-04 23:47:20 +00:00
|
|
|
this.f37c = charSequence2;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (this == obj) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof c)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
c cVar = (c) obj;
|
2021-08-04 23:47:20 +00:00
|
|
|
return this.a == cVar.a && m.areEqual(this.b, cVar.b) && m.areEqual(this.f37c, cVar.f37c);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
|
|
|
int i = this.a * 31;
|
|
|
|
CharSequence charSequence = this.b;
|
|
|
|
int i2 = 0;
|
|
|
|
int hashCode = (i + (charSequence != null ? charSequence.hashCode() : 0)) * 31;
|
2021-08-04 23:47:20 +00:00
|
|
|
CharSequence charSequence2 = this.f37c;
|
2021-07-24 02:37:17 +00:00
|
|
|
if (charSequence2 != null) {
|
|
|
|
i2 = charSequence2.hashCode();
|
|
|
|
}
|
|
|
|
return hashCode + i2;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
StringBuilder K = c.d.b.a.a.K("UpsellData(imageResId=");
|
|
|
|
K.append(this.a);
|
|
|
|
K.append(", headerText=");
|
|
|
|
K.append(this.b);
|
|
|
|
K.append(", bodyText=");
|
2021-08-04 23:47:20 +00:00
|
|
|
K.append(this.f37c);
|
2021-07-24 02:37:17 +00:00
|
|
|
K.append(")");
|
|
|
|
return K.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
|
|
|
public static final class d extends AppFragment {
|
|
|
|
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(d.class, "binding", "getBinding()Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0)};
|
2021-07-28 07:39:21 +00:00
|
|
|
public static final a j = new a(null);
|
2021-08-03 07:33:18 +00:00
|
|
|
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, C0014b.i, null, 2, null);
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
2021-07-28 07:39:21 +00:00
|
|
|
public static final class a {
|
|
|
|
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
2021-08-03 07:33:18 +00:00
|
|
|
/* renamed from: c.a.a.e.b$d$b reason: collision with other inner class name */
|
|
|
|
public static final /* synthetic */ class C0014b extends k implements Function1<View, k5> {
|
|
|
|
public static final C0014b i = new C0014b();
|
2021-07-24 02:37:17 +00:00
|
|
|
|
2021-08-03 07:33:18 +00:00
|
|
|
public C0014b() {
|
2021-07-28 07:39:21 +00:00
|
|
|
super(1, k5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 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
|
2021-07-28 07:39:21 +00:00
|
|
|
public k5 invoke(View view) {
|
2021-07-24 02:37:17 +00:00
|
|
|
View view2 = view;
|
|
|
|
m.checkNotNullParameter(view2, "p1");
|
2021-08-04 23:47:20 +00:00
|
|
|
int i2 = 2131364534;
|
|
|
|
TextView textView = (TextView) view2.findViewById(2131364534);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (textView != null) {
|
2021-08-04 23:47:20 +00:00
|
|
|
i2 = 2131364542;
|
|
|
|
TextView textView2 = (TextView) view2.findViewById(2131364542);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (textView2 != null) {
|
2021-08-04 23:47:20 +00:00
|
|
|
i2 = 2131364543;
|
|
|
|
ImageView imageView = (ImageView) view2.findViewById(2131364543);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (imageView != null) {
|
2021-07-28 07:39:21 +00:00
|
|
|
return new k5((LinearLayout) view2, textView, textView2, imageView);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public d() {
|
2021-08-06 20:07:13 +00:00
|
|
|
super(2131559167);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-07-28 07:39:21 +00:00
|
|
|
public final k5 g() {
|
|
|
|
return (k5) this.k.getValue((Fragment) this, i[0]);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.discord.app.AppFragment
|
|
|
|
public void onViewBoundOrOnResume() {
|
|
|
|
String string;
|
|
|
|
super.onViewBoundOrOnResume();
|
|
|
|
ImageView imageView = g().d;
|
|
|
|
Bundle arguments = getArguments();
|
|
|
|
imageView.setImageResource(arguments != null ? arguments.getInt("extra_image_id") : 0);
|
2021-08-06 20:07:13 +00:00
|
|
|
TextView textView = g().f121c;
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellHeader");
|
|
|
|
Bundle arguments2 = getArguments();
|
|
|
|
textView.setText(arguments2 != null ? arguments2.getString("extra_header_string") : null);
|
|
|
|
TextView textView2 = g().b;
|
|
|
|
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellBody");
|
|
|
|
Bundle arguments3 = getArguments();
|
2021-08-03 07:33:18 +00:00
|
|
|
textView2.setText((arguments3 == null || (string = arguments3.getString("extra_body_text")) == null) ? "" : c.a.l.b.l(string, new Object[0], null, 2));
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
|
|
|
public static final class e extends FragmentStateAdapter {
|
|
|
|
public final List<c> a;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public e(Fragment fragment, List<c> list) {
|
|
|
|
super(fragment);
|
|
|
|
m.checkNotNullParameter(fragment, "fragment");
|
|
|
|
m.checkNotNullParameter(list, "pages");
|
|
|
|
this.a = list;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // androidx.viewpager2.adapter.FragmentStateAdapter
|
|
|
|
public Fragment createFragment(int i) {
|
|
|
|
c cVar = this.a.get(i);
|
2021-07-28 07:39:21 +00:00
|
|
|
d.a aVar = d.j;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i2 = cVar.a;
|
|
|
|
CharSequence charSequence = cVar.b;
|
2021-08-04 23:47:20 +00:00
|
|
|
CharSequence charSequence2 = cVar.f37c;
|
2021-07-24 02:37:17 +00:00
|
|
|
Objects.requireNonNull(aVar);
|
|
|
|
m.checkNotNullParameter(charSequence, "headerText");
|
|
|
|
m.checkNotNullParameter(charSequence2, "bodyText");
|
|
|
|
Bundle bundle = new Bundle();
|
|
|
|
bundle.putInt("extra_image_id", i2);
|
|
|
|
bundle.putString("extra_header_string", charSequence.toString());
|
|
|
|
bundle.putString("extra_body_text", charSequence2.toString());
|
|
|
|
d dVar = new d();
|
|
|
|
dVar.setArguments(bundle);
|
|
|
|
return dVar;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Adapter
|
|
|
|
public int getItemCount() {
|
|
|
|
return this.a.size();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
|
|
|
public static final /* synthetic */ class f extends k implements Function1<View, n0> {
|
|
|
|
public static final f i = new f();
|
|
|
|
|
|
|
|
public f() {
|
|
|
|
super(1, n0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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 n0 invoke(View view) {
|
|
|
|
View view2 = view;
|
|
|
|
m.checkNotNullParameter(view2, "p1");
|
2021-08-04 23:47:20 +00:00
|
|
|
int i2 = 2131364536;
|
|
|
|
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364536);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (linearLayout != null) {
|
2021-08-04 23:47:20 +00:00
|
|
|
i2 = 2131364537;
|
|
|
|
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364537);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (materialButton != null) {
|
2021-08-04 23:47:20 +00:00
|
|
|
i2 = 2131364539;
|
|
|
|
View findViewById = view2.findViewById(2131364539);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (findViewById != null) {
|
2021-08-04 23:47:20 +00:00
|
|
|
i2 = 2131364540;
|
|
|
|
TabLayout tabLayout = (TabLayout) view2.findViewById(2131364540);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (tabLayout != null) {
|
2021-08-04 23:47:20 +00:00
|
|
|
i2 = 2131364541;
|
|
|
|
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(2131364541);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (materialButton2 != null) {
|
2021-08-04 23:47:20 +00:00
|
|
|
i2 = 2131364544;
|
|
|
|
MaterialButton materialButton3 = (MaterialButton) view2.findViewById(2131364544);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (materialButton3 != null) {
|
2021-08-04 23:47:20 +00:00
|
|
|
i2 = 2131364547;
|
|
|
|
ViewPager2 viewPager2 = (ViewPager2) view2.findViewById(2131364547);
|
2021-07-24 02:37:17 +00:00
|
|
|
if (viewPager2 != null) {
|
|
|
|
return new n0((RelativeLayout) view2, linearLayout, materialButton, findViewById, tabLayout, materialButton2, materialButton3, viewPager2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-28 07:39:21 +00:00
|
|
|
public b() {
|
2021-08-04 23:47:20 +00:00
|
|
|
super(2131558602);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2021-07-28 07:39:21 +00:00
|
|
|
public static final void g(b bVar) {
|
|
|
|
Bundle arguments = bVar.getArguments();
|
2021-07-24 02:37:17 +00:00
|
|
|
String string = arguments != null ? arguments.getString("extra_page_name") : null;
|
2021-07-28 07:39:21 +00:00
|
|
|
Bundle arguments2 = bVar.getArguments();
|
2021-07-24 02:37:17 +00:00
|
|
|
String string2 = arguments2 != null ? arguments2.getString("extra_section_name") : null;
|
2021-07-28 07:39:21 +00:00
|
|
|
Bundle arguments3 = bVar.getArguments();
|
2021-07-24 02:37:17 +00:00
|
|
|
String string3 = arguments3 != null ? arguments3.getString("extra_object_name") : null;
|
2021-07-28 07:39:21 +00:00
|
|
|
Bundle arguments4 = bVar.getArguments();
|
2021-07-24 02:37:17 +00:00
|
|
|
AnalyticsTracker.INSTANCE.premiumSettingsOpened(new Traits.Location(string, string2, string3, arguments4 != null ? arguments4.getString("extra_object_type") : null, null, 16, null));
|
|
|
|
WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion;
|
2021-07-28 07:39:21 +00:00
|
|
|
Context requireContext = bVar.requireContext();
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(requireContext, "requireContext()");
|
|
|
|
WidgetSettingsPremium.Companion.launch$default(companion, requireContext, null, null, 6, null);
|
2021-07-28 07:39:21 +00:00
|
|
|
bVar.dismiss();
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public final n0 h() {
|
|
|
|
return (n0) this.k.getValue((Fragment) this, i[0]);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final boolean i() {
|
|
|
|
Bundle arguments = getArguments();
|
|
|
|
return arguments != null && arguments.getBoolean("extra_show_learn_more");
|
|
|
|
}
|
|
|
|
|
|
|
|
public final boolean j() {
|
|
|
|
Bundle arguments = getArguments();
|
|
|
|
return arguments != null && arguments.getBoolean("extra_show_other_pages");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
|
|
|
|
public void onCreate(Bundle bundle) {
|
|
|
|
String string;
|
|
|
|
String str;
|
|
|
|
super.onCreate(bundle);
|
|
|
|
AppDialog.hideKeyboard$default(this, null, 1, null);
|
2021-08-06 20:07:13 +00:00
|
|
|
String string2 = getString(2131892729);
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(string2, "getString(R.string.premi…psell_tag_passive_mobile)");
|
2021-08-06 20:07:13 +00:00
|
|
|
String string3 = getString(2131892728);
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(string3, "getString(R.string.premi…l_tag_description_mobile)");
|
2021-08-06 20:07:13 +00:00
|
|
|
String string4 = getString(2131892715);
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(string4, "getString(R.string.premi…ell_emoji_passive_mobile)");
|
2021-08-06 20:07:13 +00:00
|
|
|
String string5 = getString(2131892712);
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(string5, "getString(R.string.premi…emoji_description_mobile)");
|
2021-08-06 20:07:13 +00:00
|
|
|
String string6 = getString(2131892705);
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(string6, "getString(R.string.premi…ed_emojis_passive_mobile)");
|
2021-08-06 20:07:13 +00:00
|
|
|
String string7 = getString(2131892704);
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(string7, "getString(R.string.premi…mojis_description_mobile)");
|
2021-08-06 20:07:13 +00:00
|
|
|
CharSequence k = c.a.l.b.k(this, 2131892733, new Object[0], null, 4);
|
|
|
|
Object[] objArr = {c.a.l.b.k(this, 2131888546, new Object[0], null, 4), c.a.l.b.k(this, 2131888544, new Object[0], null, 4)};
|
|
|
|
String string8 = getString(2131892700);
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(string8, "getString(R.string.premi…ed_avatar_passive_mobile)");
|
2021-08-06 20:07:13 +00:00
|
|
|
String string9 = getString(2131892699);
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(string9, "getString(R.string.premi…vatar_description_mobile)");
|
2021-08-06 20:07:13 +00:00
|
|
|
String string10 = getString(2131892708);
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(string10, "getString(R.string.premi…ell_badge_passive_mobile)");
|
2021-08-06 20:07:13 +00:00
|
|
|
String string11 = getString(2131892707);
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(string11, "getString(R.string.premi…badge_description_mobile)");
|
2021-08-06 20:07:13 +00:00
|
|
|
List listOf = n.listOf((Object[]) new c[]{new c(2131232293, string2, string3), new c(2131232214, string4, string5), new c(2131232166, string6, string7), new c(2131232294, k, c.a.l.b.k(this, 2131892732, objArr, null, 4)), new c(2131232169, string8, string9), new c(2131232172, string10, string11)});
|
2021-07-24 02:37:17 +00:00
|
|
|
Bundle arguments = getArguments();
|
|
|
|
int i2 = arguments != null ? arguments.getInt("extra_page_number") : 0;
|
|
|
|
Bundle arguments2 = getArguments();
|
|
|
|
String str2 = "";
|
|
|
|
if (arguments2 != null && arguments2.containsKey("extra_header_string")) {
|
|
|
|
c cVar = (c) listOf.get(i2);
|
|
|
|
Bundle arguments3 = getArguments();
|
|
|
|
if (arguments3 == null || (str = arguments3.getString("extra_header_string")) == null) {
|
|
|
|
str = str2;
|
|
|
|
}
|
|
|
|
Objects.requireNonNull(cVar);
|
|
|
|
m.checkNotNullParameter(str, "<set-?>");
|
|
|
|
cVar.b = str;
|
|
|
|
}
|
|
|
|
Bundle arguments4 = getArguments();
|
|
|
|
if (arguments4 != null && arguments4.containsKey("extra_body_text")) {
|
|
|
|
c cVar2 = (c) listOf.get(i2);
|
|
|
|
Bundle arguments5 = getArguments();
|
|
|
|
if (!(arguments5 == null || (string = arguments5.getString("extra_body_text")) == null)) {
|
|
|
|
str2 = string;
|
|
|
|
}
|
|
|
|
Objects.requireNonNull(cVar2);
|
|
|
|
m.checkNotNullParameter(str2, "<set-?>");
|
2021-08-04 23:47:20 +00:00
|
|
|
cVar2.f37c = str2;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
c cVar3 = (c) listOf.get(i2);
|
|
|
|
List mutableListOf = n.mutableListOf(cVar3);
|
|
|
|
if (j()) {
|
|
|
|
mutableListOf.addAll(u.minus(listOf, cVar3));
|
|
|
|
}
|
|
|
|
this.l = new e(this, mutableListOf);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.discord.app.AppDialog
|
|
|
|
public void onViewBound(View view) {
|
|
|
|
m.checkNotNullParameter(view, "view");
|
|
|
|
super.onViewBound(view);
|
|
|
|
ViewPager2 viewPager2 = h().f;
|
|
|
|
m.checkNotNullExpressionValue(viewPager2, "binding.premiumUpsellViewpager");
|
|
|
|
e eVar = this.l;
|
|
|
|
if (eVar == null) {
|
|
|
|
m.throwUninitializedPropertyAccessException("pagerAdapter");
|
|
|
|
}
|
|
|
|
viewPager2.setAdapter(eVar);
|
2021-08-06 20:07:13 +00:00
|
|
|
TabLayout tabLayout = h().f133c;
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(tabLayout, "binding.premiumUpsellDots");
|
|
|
|
int i2 = 8;
|
|
|
|
tabLayout.setVisibility(j() ? 0 : 8);
|
2021-08-06 20:07:13 +00:00
|
|
|
TabLayout tabLayout2 = h().f133c;
|
2021-07-24 02:37:17 +00:00
|
|
|
m.checkNotNullExpressionValue(tabLayout2, "binding.premiumUpsellDots");
|
|
|
|
ViewPager2 viewPager22 = h().f;
|
|
|
|
m.checkNotNullExpressionValue(viewPager22, "binding.premiumUpsellViewpager");
|
|
|
|
ViewPager2ExtensionsKt.setUpWithViewPager2$default(tabLayout2, viewPager22, null, 2, null);
|
2021-07-28 07:39:21 +00:00
|
|
|
h().b.setOnClickListener(new a(0, this));
|
2021-07-24 02:37:17 +00:00
|
|
|
MaterialButton materialButton = h().e;
|
|
|
|
m.checkNotNullExpressionValue(materialButton, "binding.premiumUpsellLearnMore");
|
|
|
|
materialButton.setVisibility(i() ? 0 : 8);
|
2021-07-28 07:39:21 +00:00
|
|
|
h().e.setOnClickListener(new a(1, this));
|
2021-07-24 02:37:17 +00:00
|
|
|
MaterialButton materialButton2 = h().d;
|
|
|
|
m.checkNotNullExpressionValue(materialButton2, "binding.premiumUpsellGetPremium");
|
|
|
|
if (!i()) {
|
|
|
|
i2 = 0;
|
|
|
|
}
|
|
|
|
materialButton2.setVisibility(i2);
|
2021-07-28 07:39:21 +00:00
|
|
|
h().d.setOnClickListener(new a(2, this));
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|