215 lines
23 KiB
Java
215 lines
23 KiB
Java
package com.discord.widgets.settings.premium;
|
|
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
import android.widget.ImageView;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.ScrollView;
|
|
import android.widget.TextView;
|
|
import androidx.cardview.widget.CardView;
|
|
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
|
import c.a.i.a3;
|
|
import c.a.i.k0;
|
|
import c.a.i.y;
|
|
import c.a.i.y2;
|
|
import c.a.i.z2;
|
|
import com.discord.R;
|
|
import com.discord.app.AppViewFlipper;
|
|
import com.discord.databinding.WidgetSettingsPremiumBinding;
|
|
import com.discord.views.ActiveSubscriptionView;
|
|
import com.discord.views.premium.AccountCreditView;
|
|
import com.google.android.material.button.MaterialButton;
|
|
import d0.z.d.k;
|
|
import d0.z.d.m;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetSettingsPremium.kt */
|
|
public final /* synthetic */ class WidgetSettingsPremium$binding$2 extends k implements Function1<View, WidgetSettingsPremiumBinding> {
|
|
public static final WidgetSettingsPremium$binding$2 INSTANCE = new WidgetSettingsPremium$binding$2();
|
|
|
|
public WidgetSettingsPremium$binding$2() {
|
|
super(1, WidgetSettingsPremiumBinding.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetSettingsPremiumBinding;", 0);
|
|
}
|
|
|
|
public final WidgetSettingsPremiumBinding invoke(View view) {
|
|
int i;
|
|
m.checkNotNullParameter(view, "p1");
|
|
View findViewById = view.findViewById(R.id.account_credits);
|
|
int i2 = R.id.premium_settings_credit_header;
|
|
if (findViewById != null) {
|
|
AccountCreditView accountCreditView = (AccountCreditView) findViewById.findViewById(R.id.credit_nitro);
|
|
if (accountCreditView != null) {
|
|
AccountCreditView accountCreditView2 = (AccountCreditView) findViewById.findViewById(R.id.credit_nitro_classic);
|
|
if (accountCreditView2 != null) {
|
|
View findViewById2 = findViewById.findViewById(R.id.credit_nitro_divider);
|
|
if (findViewById2 != null) {
|
|
y yVar = new y((CardView) findViewById, accountCreditView, accountCreditView2, findViewById2);
|
|
View findViewById3 = view.findViewById(R.id.payment);
|
|
if (findViewById3 != null) {
|
|
int i3 = R.id.active_subscriptions_bottom_button;
|
|
MaterialButton materialButton = (MaterialButton) findViewById3.findViewById(R.id.active_subscriptions_bottom_button);
|
|
if (materialButton != null) {
|
|
i3 = R.id.premium_settings_billing_divider;
|
|
View findViewById4 = findViewById3.findViewById(R.id.premium_settings_billing_divider);
|
|
if (findViewById4 != null) {
|
|
i3 = R.id.premium_settings_billing_information;
|
|
TextView textView = (TextView) findViewById3.findViewById(R.id.premium_settings_billing_information);
|
|
if (textView != null) {
|
|
i3 = R.id.premium_settings_google_play_manage;
|
|
TextView textView2 = (TextView) findViewById3.findViewById(R.id.premium_settings_google_play_manage);
|
|
if (textView2 != null) {
|
|
LinearLayout linearLayout = (LinearLayout) findViewById3;
|
|
i3 = R.id.premium_settings_payment_header;
|
|
TextView textView3 = (TextView) findViewById3.findViewById(R.id.premium_settings_payment_header);
|
|
if (textView3 != null) {
|
|
k0 k0Var = new k0(linearLayout, materialButton, findViewById4, textView, textView2, linearLayout, textView3);
|
|
View findViewById5 = view.findViewById(R.id.premium_perks);
|
|
if (findViewById5 != null) {
|
|
int i4 = R.id.guild_subscription_perk;
|
|
TextView textView4 = (TextView) findViewById5.findViewById(R.id.guild_subscription_perk);
|
|
if (textView4 != null) {
|
|
i4 = R.id.identity_perk;
|
|
TextView textView5 = (TextView) findViewById5.findViewById(R.id.identity_perk);
|
|
if (textView5 != null) {
|
|
i4 = R.id.max_guilds_perk;
|
|
TextView textView6 = (TextView) findViewById5.findViewById(R.id.max_guilds_perk);
|
|
if (textView6 != null) {
|
|
i4 = R.id.max_message_length_perk;
|
|
TextView textView7 = (TextView) findViewById5.findViewById(R.id.max_message_length_perk);
|
|
if (textView7 != null) {
|
|
i4 = R.id.upload_size_perk;
|
|
TextView textView8 = (TextView) findViewById5.findViewById(R.id.upload_size_perk);
|
|
if (textView8 != null) {
|
|
y2 y2Var = new y2((LinearLayout) findViewById5, textView4, textView5, textView6, textView7, textView8);
|
|
ActiveSubscriptionView activeSubscriptionView = (ActiveSubscriptionView) view.findViewById(R.id.premium_settings_active_guild_subscription);
|
|
if (activeSubscriptionView != null) {
|
|
ActiveSubscriptionView activeSubscriptionView2 = (ActiveSubscriptionView) view.findViewById(R.id.premium_settings_active_subscription);
|
|
if (activeSubscriptionView2 != null) {
|
|
LinearLayout linearLayout2 = (LinearLayout) view.findViewById(R.id.premium_settings_credit_container);
|
|
if (linearLayout2 != null) {
|
|
TextView textView9 = (TextView) view.findViewById(R.id.premium_settings_credit_header);
|
|
if (textView9 != null) {
|
|
TextView textView10 = (TextView) view.findViewById(R.id.premium_settings_grandfathered);
|
|
if (textView10 != null) {
|
|
TextView textView11 = (TextView) view.findViewById(R.id.premium_settings_legalese);
|
|
if (textView11 != null) {
|
|
MaterialButton materialButton2 = (MaterialButton) view.findViewById(R.id.premium_settings_retry);
|
|
if (materialButton2 != null) {
|
|
ScrollView scrollView = (ScrollView) view.findViewById(R.id.premium_settings_scrollview);
|
|
if (scrollView != null) {
|
|
i2 = R.id.premium_settings_status_notice_button;
|
|
Button button = (Button) view.findViewById(R.id.premium_settings_status_notice_button);
|
|
if (button != null) {
|
|
CardView cardView = (CardView) view.findViewById(R.id.premium_settings_status_notice_container);
|
|
if (cardView != null) {
|
|
i2 = R.id.premium_settings_status_notice_tv;
|
|
TextView textView12 = (TextView) view.findViewById(R.id.premium_settings_status_notice_tv);
|
|
if (textView12 != null) {
|
|
LinearLayout linearLayout3 = (LinearLayout) view.findViewById(R.id.premium_settings_subscription_container);
|
|
if (linearLayout3 != null) {
|
|
i2 = R.id.premium_settings_subscriptions_header;
|
|
TextView textView13 = (TextView) view.findViewById(R.id.premium_settings_subscriptions_header);
|
|
if (textView13 != null) {
|
|
AppViewFlipper appViewFlipper = (AppViewFlipper) view.findViewById(R.id.premium_settings_view_flipper);
|
|
if (appViewFlipper != null) {
|
|
i2 = R.id.premium_tier_1;
|
|
View findViewById6 = view.findViewById(R.id.premium_tier_1);
|
|
if (findViewById6 != null) {
|
|
int i5 = R.id.premium_settings_premium_classic;
|
|
MaterialButton materialButton3 = (MaterialButton) findViewById6.findViewById(R.id.premium_settings_premium_classic);
|
|
if (materialButton3 != null) {
|
|
i5 = R.id.tier_1_guild_subscription_perk;
|
|
TextView textView14 = (TextView) findViewById6.findViewById(R.id.tier_1_guild_subscription_perk);
|
|
if (textView14 != null) {
|
|
i5 = R.id.tier1_upload_size_perk;
|
|
TextView textView15 = (TextView) findViewById6.findViewById(R.id.tier1_upload_size_perk);
|
|
if (textView15 != null) {
|
|
z2 z2Var = new z2((LinearLayout) findViewById6, materialButton3, textView14, textView15);
|
|
View findViewById7 = view.findViewById(R.id.premium_tier_2);
|
|
if (findViewById7 != null) {
|
|
int i6 = R.id.premium_settings_nitro;
|
|
ImageView imageView = (ImageView) findViewById7.findViewById(R.id.premium_settings_nitro);
|
|
if (imageView != null) {
|
|
i6 = R.id.premium_settings_nitro_wumpus;
|
|
ImageView imageView2 = (ImageView) findViewById7.findViewById(R.id.premium_settings_nitro_wumpus);
|
|
if (imageView2 != null) {
|
|
i6 = R.id.premium_settings_premium;
|
|
MaterialButton materialButton4 = (MaterialButton) findViewById7.findViewById(R.id.premium_settings_premium);
|
|
if (materialButton4 != null) {
|
|
return new WidgetSettingsPremiumBinding((CoordinatorLayout) view, yVar, k0Var, y2Var, activeSubscriptionView, activeSubscriptionView2, linearLayout2, textView9, textView10, textView11, materialButton2, scrollView, button, cardView, textView12, linearLayout3, textView13, appViewFlipper, z2Var, new a3((LinearLayout) findViewById7, imageView, imageView2, materialButton4));
|
|
}
|
|
}
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(findViewById7.getResources().getResourceName(i6)));
|
|
}
|
|
i2 = R.id.premium_tier_2;
|
|
}
|
|
}
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(findViewById6.getResources().getResourceName(i5)));
|
|
}
|
|
} else {
|
|
i2 = R.id.premium_settings_view_flipper;
|
|
}
|
|
}
|
|
} else {
|
|
i2 = R.id.premium_settings_subscription_container;
|
|
}
|
|
}
|
|
} else {
|
|
i2 = R.id.premium_settings_status_notice_container;
|
|
}
|
|
}
|
|
} else {
|
|
i2 = R.id.premium_settings_scrollview;
|
|
}
|
|
} else {
|
|
i2 = R.id.premium_settings_retry;
|
|
}
|
|
} else {
|
|
i2 = R.id.premium_settings_legalese;
|
|
}
|
|
} else {
|
|
i2 = R.id.premium_settings_grandfathered;
|
|
}
|
|
}
|
|
} else {
|
|
i2 = R.id.premium_settings_credit_container;
|
|
}
|
|
} else {
|
|
i2 = R.id.premium_settings_active_subscription;
|
|
}
|
|
} else {
|
|
i2 = R.id.premium_settings_active_guild_subscription;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(findViewById5.getResources().getResourceName(i4)));
|
|
}
|
|
i2 = R.id.premium_perks;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(findViewById3.getResources().getResourceName(i3)));
|
|
}
|
|
i2 = R.id.payment;
|
|
} else {
|
|
i = R.id.credit_nitro_divider;
|
|
}
|
|
} else {
|
|
i = R.id.credit_nitro_classic;
|
|
}
|
|
} else {
|
|
i = R.id.credit_nitro;
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(findViewById.getResources().getResourceName(i)));
|
|
}
|
|
i2 = R.id.account_credits;
|
|
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i2)));
|
|
}
|
|
}
|