正在查看: bbinstant v6.24.0 应用的 ThankyouActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: bbinstant v6.24.0 应用的 ThankyouActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bigbasket.bbinstant.ui.invoice;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.activity.ComponentActivity;
import androidx.cardview.widget.CardView;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelStore;
import androidx.lifecycle.f0;
import androidx.lifecycle.s;
import androidx.lifecycle.viewmodel.CreationExtras;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bigbasket.bbinstant.App;
import com.bigbasket.bbinstant.analytics.moengage.MoEventManager;
import com.bigbasket.bbinstant.core.Constants;
import com.bigbasket.bbinstant.core.TooltipManager;
import com.bigbasket.bbinstant.core.location.entity.Location;
import com.bigbasket.bbinstant.core.machine.entity.Product;
import com.bigbasket.bbinstant.core.persistance.LocationStore;
import com.bigbasket.bbinstant.core.settings.SettingEntity;
import com.bigbasket.bbinstant.core.utils.StringUtils;
import com.bigbasket.bbinstant.ui.BaseActivity;
import com.bigbasket.bbinstant.ui.dynamic_minimum_balance.MinBalanceOfferData;
import com.bigbasket.bbinstant.ui.invoice.ThankyouActivity;
import com.bigbasket.bbinstant.ui.invoice.viewModel.ThankYouViewModel;
import com.bigbasket.bbinstant.ui.machine.MinBalanceOfferSheet;
import com.bigbasket.bbinstant.ui.machine.OrderIdProvider;
import com.example.example.ThankYouBanners;
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Timer;
import java.util.TimerTask;
import kotlin.collections.j;
import kotlin.e0;
import kotlin.jvm.functions.l;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.d0;
import kotlin.jvm.internal.r;
import kotlin.jvm.internal.v;
import kotlin.jvm.internal.w;
import kotlin.text.p;
public final class ThankyouActivity extends BaseActivity implements View.OnTouchListener {
private int amountPaid;
private Button btnContinue;
private Button btnReport;
private CardView cvPriceDetails;
private boolean hasPicked;
private com.bigbasket.bbinstant.ui.invoice.adapters.a itemAdapter;
private ImageView ivStar_1;
private ImageView ivStar_1_shadow;
private ImageView ivStar_2;
private ImageView ivStar_2_shadow;
private ImageView ivStar_3;
private ImageView ivStar_3_shadow;
private ImageView ivStar_4;
private ImageView ivStar_4_shadow;
private ImageView ivStar_5;
private ImageView ivStar_5_shadow;
private ArrayList<Product> listProducts;
private LinearLayout llDMBBar;
private LinearLayout llIncomplete;
private LinearLayout llRatingBar;
private LinearLayout llThankyouFeedback;
private MinBalanceOfferData minBalanceOfferData;
private int offerDiscount;
private OrderIdProvider orderIdProvider;
private String quantity;
private RecyclerView rclBanners;
private RecyclerView rclPickedItems;
private boolean showBottomSheet;
private String[] stringArray;
private int subTotal;
private RelativeLayout tableRowRefund;
private String totalPrice;
private TextView tvIncompleteText2;
private TextView tvItemPickedHeader;
private TextView tvOfferDiscount;
private TextView tvPaidAmout;
private TextView tvPriceDetilsHeader;
private TextView tvRatingLiked;
private TextView tvRatingTxt1;
private TextView tvRatingTxt2;
private TextView tvRefund;
private TextView tvRefundMg;
private TextView tvTotalAmout;
private final int RESULT_RATING_THANK_REPORT = 881;
private final int RESULT_RATING_THANK_CLOSE = 882;
public static final class a extends TimerTask {
a() {
}
public static final void run$lambda$0(ThankyouActivity thankyouActivity) {
v.checkNotNullParameter(thankyouActivity, "this$0");
LinearLayout linearLayout = thankyouActivity.llDMBBar;
if (linearLayout == null) {
v.throwUninitializedPropertyAccessException("llDMBBar");
linearLayout = null;
}
linearLayout.setVisibility(8);
}
@Override
public void run() {
final ThankyouActivity thankyouActivity = ThankyouActivity.this;
thankyouActivity.runOnUiThread(new Runnable() {
@Override
public final void run() {
ThankyouActivity.a.run$lambda$0(ThankyouActivity.this);
}
});
}
}
public static final class b extends w implements kotlin.jvm.functions.a {
final ComponentActivity $this_viewModels;
public b(ComponentActivity componentActivity) {
super(0);
this.$this_viewModels = componentActivity;
}
public final ViewModelProvider.a m93invoke() {
return this.$this_viewModels.getDefaultViewModelProviderFactory();
}
}
public static final class c extends w implements kotlin.jvm.functions.a {
final ComponentActivity $this_viewModels;
public c(ComponentActivity componentActivity) {
super(0);
this.$this_viewModels = componentActivity;
}
public final ViewModelStore m94invoke() {
return this.$this_viewModels.getViewModelStore();
}
}
public static final class d extends w implements kotlin.jvm.functions.a {
final kotlin.jvm.functions.a $extrasProducer;
final ComponentActivity $this_viewModels;
public d(kotlin.jvm.functions.a aVar, ComponentActivity componentActivity) {
super(0);
this.$extrasProducer = aVar;
this.$this_viewModels = componentActivity;
}
public final CreationExtras m95invoke() {
CreationExtras creationExtras;
kotlin.jvm.functions.a aVar = this.$extrasProducer;
return (aVar == null || (creationExtras = (CreationExtras) aVar.invoke()) == null) ? this.$this_viewModels.getDefaultViewModelCreationExtras() : creationExtras;
}
}
static final class e extends w implements l {
e() {
super(1);
}
public Object invoke(Object obj) {
invoke((ThankYouBanners) obj);
return e0.INSTANCE;
}
public final void invoke(ThankYouBanners thankYouBanners) {
ThankyouActivity.this.addBanners(thankYouBanners);
}
}
static final class f implements s, r {
private final l function;
f(l lVar) {
v.checkNotNullParameter(lVar, "function");
this.function = lVar;
}
public final boolean equals(Object obj) {
if ((obj instanceof s) && (obj instanceof r)) {
return v.areEqual(getFunctionDelegate(), ((r) obj).getFunctionDelegate());
}
return false;
}
public final kotlin.b getFunctionDelegate() {
return this.function;
}
public final int hashCode() {
return getFunctionDelegate().hashCode();
}
@Override
public final void onChanged(Object obj) {
this.function.invoke(obj);
}
}
public final void addBanners(ThankYouBanners thankYouBanners) {
if (thankYouBanners != null) {
com.bigbasket.bbinstant.ui.invoice.adapters.f fVar = new com.bigbasket.bbinstant.ui.invoice.adapters.f(this, thankYouBanners);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
RecyclerView recyclerView = this.rclBanners;
RecyclerView recyclerView2 = null;
if (recyclerView == null) {
v.throwUninitializedPropertyAccessException("rclBanners");
recyclerView = null;
}
recyclerView.setLayoutManager(linearLayoutManager);
RecyclerView recyclerView3 = this.rclBanners;
if (recyclerView3 == null) {
v.throwUninitializedPropertyAccessException("rclBanners");
} else {
recyclerView2 = recyclerView3;
}
recyclerView2.setAdapter(fVar);
}
}
private final void attachTimer() {
new Timer().schedule(new a(), 5000L);
}
private final void createBottomSheet(MinBalanceOfferData minBalanceOfferData) {
String format;
View findViewById = findViewById(2131362267);
v.checkNotNullExpressionValue(findViewById, "findViewById(R.id.ll_bar_unlock_min_balance_bar)");
LinearLayout linearLayout = (LinearLayout) findViewById;
this.llDMBBar = linearLayout;
LinearLayout linearLayout2 = null;
if (linearLayout == null) {
v.throwUninitializedPropertyAccessException("llDMBBar");
linearLayout = null;
}
linearLayout.setVisibility(0);
View findViewById2 = findViewById(2131362739);
v.checkNotNullExpressionValue(findViewById2, "findViewById(R.id.tv_dmb_bar_text)");
TextView textView = (TextView) findViewById2;
View findViewById3 = findViewById(2131362738);
v.checkNotNullExpressionValue(findViewById3, "findViewById(R.id.tv_dmb_bar_number)");
TextView textView2 = (TextView) findViewById3;
int intValue = minBalanceOfferData.getDmbDays().intValue();
Integer userTransactionDays = minBalanceOfferData.getUserTransactionDays();
v.checkNotNullExpressionValue(userTransactionDays, "minBalanceOfferData.userTransactionDays");
if (intValue - userTransactionDays.intValue() == 1) {
format = com.bigbasket.bbinstant.core.persistance.d.get().getSettings().getDmbToastMessageSingular();
} else {
d0 d0Var = d0.INSTANCE;
String dmbToastMessage = minBalanceOfferData.getDmbToastMessage();
v.checkNotNullExpressionValue(dmbToastMessage, "minBalanceOfferData.dmbToastMessage");
format = String.format(dmbToastMessage, Arrays.copyOf(new Object[]{""}, 1));
v.checkNotNullExpressionValue(format, "format(format, *args)");
}
textView.setText(format);
int intValue2 = minBalanceOfferData.getDmbDays().intValue();
Integer userTransactionDays2 = minBalanceOfferData.getUserTransactionDays();
v.checkNotNullExpressionValue(userTransactionDays2, "minBalanceOfferData.userTransactionDays");
textView2.setText(String.valueOf(intValue2 - userTransactionDays2.intValue()));
final Bundle bundle = new Bundle();
bundle.putSerializable("dmb_data", minBalanceOfferData);
if (minBalanceOfferData.getDmbDays() == minBalanceOfferData.getUserTransactionDays()) {
if (shouldWeCelebrate()) {
LinearLayout linearLayout3 = this.llDMBBar;
if (linearLayout3 == null) {
v.throwUninitializedPropertyAccessException("llDMBBar");
linearLayout3 = null;
}
opnenOfferBottomSheet(bundle, linearLayout3);
}
LinearLayout linearLayout4 = this.llDMBBar;
if (linearLayout4 == null) {
v.throwUninitializedPropertyAccessException("llDMBBar");
linearLayout4 = null;
}
linearLayout4.setVisibility(8);
}
LinearLayout linearLayout5 = this.llDMBBar;
if (linearLayout5 == null) {
v.throwUninitializedPropertyAccessException("llDMBBar");
} else {
linearLayout2 = linearLayout5;
}
linearLayout2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ThankyouActivity.createBottomSheet$lambda$7(ThankyouActivity.this, bundle, view);
}
});
}
public static final void createBottomSheet$lambda$7(ThankyouActivity thankyouActivity, Bundle bundle, View view) {
v.checkNotNullParameter(thankyouActivity, "this$0");
v.checkNotNullParameter(bundle, "$bundle");
LinearLayout linearLayout = thankyouActivity.llDMBBar;
if (linearLayout == null) {
v.throwUninitializedPropertyAccessException("llDMBBar");
linearLayout = null;
}
thankyouActivity.opnenOfferBottomSheet(bundle, linearLayout);
}
private final String[] getMessageArray() {
SettingEntity settings = com.bigbasket.bbinstant.core.persistance.d.get().getSettings();
String oneRating = settings.getOneRating();
if (oneRating == null) {
oneRating = "";
}
String twoRating = settings.getTwoRating();
if (twoRating == null) {
twoRating = "";
}
String threeRating = settings.getThreeRating();
if (threeRating == null) {
threeRating = "";
}
String fourRating = settings.getFourRating();
if (fourRating == null) {
fourRating = "";
}
String fiveRating = settings.getFiveRating();
return new String[]{oneRating, twoRating, threeRating, fourRating, fiveRating != null ? fiveRating : ""};
}
private final void handleRationBar(int i) {
String str;
String str2;
ImageView imageView = null;
if (i > 0) {
TextView textView = this.tvRatingLiked;
if (textView == null) {
v.throwUninitializedPropertyAccessException("tvRatingLiked");
textView = null;
}
if (Integer.valueOf(i).equals(0)) {
str = " ";
} else {
String[] strArr = this.stringArray;
if (strArr == null) {
v.throwUninitializedPropertyAccessException("stringArray");
strArr = null;
}
str = strArr[i - 1];
}
textView.setText(str);
TextView textView2 = this.tvRatingLiked;
if (textView2 == null) {
v.throwUninitializedPropertyAccessException("tvRatingLiked");
textView2 = null;
}
textView2.setVisibility(0);
TextView textView3 = this.tvRatingTxt1;
if (textView3 == null) {
v.throwUninitializedPropertyAccessException("tvRatingTxt1");
textView3 = null;
}
textView3.setVisibility(8);
TextView textView4 = this.tvRatingTxt2;
if (textView4 == null) {
v.throwUninitializedPropertyAccessException("tvRatingTxt2");
textView4 = null;
}
textView4.setVisibility(8);
TextView textView5 = this.tvRatingLiked;
if (i > 2) {
if (textView5 == null) {
v.throwUninitializedPropertyAccessException("tvRatingLiked");
textView5 = null;
}
str2 = "#689F38";
} else {
if (textView5 == null) {
v.throwUninitializedPropertyAccessException("tvRatingLiked");
textView5 = null;
}
str2 = "#E95F62";
}
textView5.setTextColor(Color.parseColor(str2));
} else {
TextView textView6 = this.tvRatingLiked;
if (textView6 == null) {
v.throwUninitializedPropertyAccessException("tvRatingLiked");
textView6 = null;
}
textView6.setVisibility(8);
TextView textView7 = this.tvRatingTxt1;
if (textView7 == null) {
v.throwUninitializedPropertyAccessException("tvRatingTxt1");
textView7 = null;
}
textView7.setVisibility(0);
TextView textView8 = this.tvRatingTxt2;
if (textView8 == null) {
v.throwUninitializedPropertyAccessException("tvRatingTxt2");
textView8 = null;
}
textView8.setVisibility(0);
}
if (i == 1) {
ImageView imageView2 = this.ivStar_1_shadow;
if (imageView2 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1_shadow");
imageView2 = null;
}
imageView2.setVisibility(0);
ImageView imageView3 = this.ivStar_2_shadow;
if (imageView3 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2_shadow");
imageView3 = null;
}
imageView3.setVisibility(4);
ImageView imageView4 = this.ivStar_3_shadow;
if (imageView4 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3_shadow");
imageView4 = null;
}
imageView4.setVisibility(4);
ImageView imageView5 = this.ivStar_4_shadow;
if (imageView5 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4_shadow");
imageView5 = null;
}
imageView5.setVisibility(4);
ImageView imageView6 = this.ivStar_5_shadow;
if (imageView6 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5_shadow");
} else {
imageView = imageView6;
}
imageView.setVisibility(4);
return;
}
if (i == 2) {
ImageView imageView7 = this.ivStar_1_shadow;
if (imageView7 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1_shadow");
imageView7 = null;
}
imageView7.setVisibility(0);
ImageView imageView8 = this.ivStar_2_shadow;
if (imageView8 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2_shadow");
imageView8 = null;
}
imageView8.setVisibility(0);
ImageView imageView9 = this.ivStar_3_shadow;
if (imageView9 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3_shadow");
imageView9 = null;
}
imageView9.setVisibility(4);
ImageView imageView10 = this.ivStar_4_shadow;
if (imageView10 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4_shadow");
imageView10 = null;
}
imageView10.setVisibility(4);
ImageView imageView11 = this.ivStar_5_shadow;
if (imageView11 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5_shadow");
} else {
imageView = imageView11;
}
imageView.setVisibility(4);
return;
}
if (i == 3) {
ImageView imageView12 = this.ivStar_1_shadow;
if (imageView12 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1_shadow");
imageView12 = null;
}
imageView12.setVisibility(0);
ImageView imageView13 = this.ivStar_2_shadow;
if (imageView13 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2_shadow");
imageView13 = null;
}
imageView13.setVisibility(0);
ImageView imageView14 = this.ivStar_3_shadow;
if (imageView14 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3_shadow");
imageView14 = null;
}
imageView14.setVisibility(0);
ImageView imageView15 = this.ivStar_4_shadow;
if (imageView15 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4_shadow");
imageView15 = null;
}
imageView15.setVisibility(4);
ImageView imageView16 = this.ivStar_5_shadow;
if (imageView16 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5_shadow");
} else {
imageView = imageView16;
}
imageView.setVisibility(4);
return;
}
if (i == 4) {
ImageView imageView17 = this.ivStar_1_shadow;
if (imageView17 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1_shadow");
imageView17 = null;
}
imageView17.setVisibility(0);
ImageView imageView18 = this.ivStar_2_shadow;
if (imageView18 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2_shadow");
imageView18 = null;
}
imageView18.setVisibility(0);
ImageView imageView19 = this.ivStar_3_shadow;
if (imageView19 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3_shadow");
imageView19 = null;
}
imageView19.setVisibility(0);
ImageView imageView20 = this.ivStar_4_shadow;
if (imageView20 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4_shadow");
imageView20 = null;
}
imageView20.setVisibility(0);
ImageView imageView21 = this.ivStar_5_shadow;
if (imageView21 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5_shadow");
} else {
imageView = imageView21;
}
imageView.setVisibility(4);
return;
}
if (i != 5) {
return;
}
ImageView imageView22 = this.ivStar_1_shadow;
if (imageView22 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1_shadow");
imageView22 = null;
}
imageView22.setVisibility(0);
ImageView imageView23 = this.ivStar_2_shadow;
if (imageView23 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2_shadow");
imageView23 = null;
}
imageView23.setVisibility(0);
ImageView imageView24 = this.ivStar_3_shadow;
if (imageView24 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3_shadow");
imageView24 = null;
}
imageView24.setVisibility(0);
ImageView imageView25 = this.ivStar_4_shadow;
if (imageView25 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4_shadow");
imageView25 = null;
}
imageView25.setVisibility(0);
ImageView imageView26 = this.ivStar_5_shadow;
if (imageView26 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5_shadow");
} else {
imageView = imageView26;
}
imageView.setVisibility(0);
}
private final void handleUIClicks() {
Button button = this.btnReport;
Button button2 = null;
if (button == null) {
v.throwUninitializedPropertyAccessException("btnReport");
button = null;
}
button.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ThankyouActivity.handleUIClicks$lambda$3(ThankyouActivity.this, view);
}
});
Button button3 = this.btnContinue;
if (button3 == null) {
v.throwUninitializedPropertyAccessException("btnContinue");
} else {
button2 = button3;
}
button2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ThankyouActivity.handleUIClicks$lambda$4(ThankyouActivity.this, view);
}
});
}
public static final void handleUIClicks$lambda$3(ThankyouActivity thankyouActivity, View view) {
v.checkNotNullParameter(thankyouActivity, "this$0");
thankyouActivity.setResult(thankyouActivity.RESULT_RATING_THANK_REPORT);
thankyouActivity.finish();
}
public static final void handleUIClicks$lambda$4(ThankyouActivity thankyouActivity, View view) {
v.checkNotNullParameter(thankyouActivity, "this$0");
thankyouActivity.onBackPressed();
}
private final void initViews() {
boolean z;
Bundle bundleExtra;
View findViewById = findViewById(2131361960);
v.checkNotNullExpressionValue(findViewById, "findViewById(R.id.btn_ty_report_issue)");
this.btnReport = (Button) findViewById;
View findViewById2 = findViewById(2131361959);
v.checkNotNullExpressionValue(findViewById2, "findViewById(R.id.btn_ty_continue)");
this.btnContinue = (Button) findViewById2;
View findViewById3 = findViewById(2131362768);
v.checkNotNullExpressionValue(findViewById3, "findViewById(R.id.tv_ty_items_picked_header)");
this.tvItemPickedHeader = (TextView) findViewById3;
View findViewById4 = findViewById(2131362784);
v.checkNotNullExpressionValue(findViewById4, "findViewById(R.id.tv_ty_sub_total)");
this.tvTotalAmout = (TextView) findViewById4;
View findViewById5 = findViewById(2131362770);
v.checkNotNullExpressionValue(findViewById5, "findViewById(R.id.tv_ty_offer_discount)");
this.tvOfferDiscount = (TextView) findViewById5;
View findViewById6 = findViewById(2131362766);
v.checkNotNullExpressionValue(findViewById6, "findViewById(R.id.tv_ty_amount_paid)");
this.tvPaidAmout = (TextView) findViewById6;
View findViewById7 = findViewById(2131362780);
v.checkNotNullExpressionValue(findViewById7, "findViewById(R.id.tv_ty_rating_text1)");
this.tvRatingTxt1 = (TextView) findViewById7;
View findViewById8 = findViewById(2131362781);
v.checkNotNullExpressionValue(findViewById8, "findViewById(R.id.tv_ty_rating_text2)");
this.tvRatingTxt2 = (TextView) findViewById8;
View findViewById9 = findViewById(2131362769);
v.checkNotNullExpressionValue(findViewById9, "findViewById(R.id.tv_ty_like_disliked)");
this.tvRatingLiked = (TextView) findViewById9;
View findViewById10 = findViewById(2131362448);
v.checkNotNullExpressionValue(findViewById10, "findViewById(R.id.rcl_ty_items_picked)");
this.rclPickedItems = (RecyclerView) findViewById10;
View findViewById11 = findViewById(2131362447);
v.checkNotNullExpressionValue(findViewById11, "findViewById(R.id.rcl_ty_banners)");
this.rclBanners = (RecyclerView) findViewById11;
View findViewById12 = findViewById(2131362283);
v.checkNotNullExpressionValue(findViewById12, "findViewById(R.id.ll_ty_rating_bar)");
this.llRatingBar = (LinearLayout) findViewById12;
View findViewById13 = findViewById(2131362282);
v.checkNotNullExpressionValue(findViewById13, "findViewById(R.id.ll_ty_incomplete_purchase)");
this.llIncomplete = (LinearLayout) findViewById13;
View findViewById14 = findViewById(2131362284);
v.checkNotNullExpressionValue(findViewById14, "findViewById(R.id.ll_ty_trans_complete)");
this.llThankyouFeedback = (LinearLayout) findViewById14;
View findViewById15 = findViewById(2131362480);
v.checkNotNullExpressionValue(findViewById15, "findViewById(R.id.rl_table_row_refund)");
this.tableRowRefund = (RelativeLayout) findViewById15;
View findViewById16 = findViewById(2131362783);
v.checkNotNullExpressionValue(findViewById16, "findViewById(R.id.tv_ty_refund_msg)");
this.tvRefundMg = (TextView) findViewById16;
View findViewById17 = findViewById(2131362782);
v.checkNotNullExpressionValue(findViewById17, "findViewById(R.id.tv_ty_refund)");
this.tvRefund = (TextView) findViewById17;
View findViewById18 = findViewById(2131362267);
v.checkNotNullExpressionValue(findViewById18, "findViewById(R.id.ll_bar_unlock_min_balance_bar)");
this.llDMBBar = (LinearLayout) findViewById18;
View findViewById19 = findViewById(2131362767);
v.checkNotNullExpressionValue(findViewById19, "findViewById(R.id.tv_ty_item_price_header)");
this.tvPriceDetilsHeader = (TextView) findViewById19;
View findViewById20 = findViewById(2131362744);
v.checkNotNullExpressionValue(findViewById20, "findViewById(R.id.tv_incomplete_purchase_text_2)");
this.tvIncompleteText2 = (TextView) findViewById20;
View findViewById21 = findViewById(2131362019);
v.checkNotNullExpressionValue(findViewById21, "findViewById(R.id.cv_ty_item_price_details)");
this.cvPriceDetails = (CardView) findViewById21;
View findViewById22 = findViewById(2131362213);
v.checkNotNullExpressionValue(findViewById22, "findViewById(R.id.iv_rating_1)");
this.ivStar_1 = (ImageView) findViewById22;
View findViewById23 = findViewById(2131362215);
v.checkNotNullExpressionValue(findViewById23, "findViewById(R.id.iv_rating_2)");
this.ivStar_2 = (ImageView) findViewById23;
View findViewById24 = findViewById(2131362217);
v.checkNotNullExpressionValue(findViewById24, "findViewById(R.id.iv_rating_3)");
this.ivStar_3 = (ImageView) findViewById24;
View findViewById25 = findViewById(2131362219);
v.checkNotNullExpressionValue(findViewById25, "findViewById(R.id.iv_rating_4)");
this.ivStar_4 = (ImageView) findViewById25;
View findViewById26 = findViewById(2131362221);
v.checkNotNullExpressionValue(findViewById26, "findViewById(R.id.iv_rating_5)");
this.ivStar_5 = (ImageView) findViewById26;
View findViewById27 = findViewById(2131362214);
v.checkNotNullExpressionValue(findViewById27, "findViewById(R.id.iv_rating_1_shadow)");
this.ivStar_1_shadow = (ImageView) findViewById27;
View findViewById28 = findViewById(2131362216);
v.checkNotNullExpressionValue(findViewById28, "findViewById(R.id.iv_rating_2_shadow)");
this.ivStar_2_shadow = (ImageView) findViewById28;
View findViewById29 = findViewById(2131362218);
v.checkNotNullExpressionValue(findViewById29, "findViewById(R.id.iv_rating_3_shadow)");
this.ivStar_3_shadow = (ImageView) findViewById29;
View findViewById30 = findViewById(2131362220);
v.checkNotNullExpressionValue(findViewById30, "findViewById(R.id.iv_rating_4_shadow)");
this.ivStar_4_shadow = (ImageView) findViewById30;
View findViewById31 = findViewById(2131362222);
v.checkNotNullExpressionValue(findViewById31, "findViewById(R.id.iv_rating_5_shadow)");
this.ivStar_5_shadow = (ImageView) findViewById31;
ImageView imageView = this.ivStar_1;
TextView textView = null;
if (imageView == null) {
v.throwUninitializedPropertyAccessException("ivStar_1");
imageView = null;
}
imageView.setOnTouchListener(this);
ImageView imageView2 = this.ivStar_2;
if (imageView2 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2");
imageView2 = null;
}
imageView2.setOnTouchListener(this);
ImageView imageView3 = this.ivStar_3;
if (imageView3 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3");
imageView3 = null;
}
imageView3.setOnTouchListener(this);
ImageView imageView4 = this.ivStar_4;
if (imageView4 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4");
imageView4 = null;
}
imageView4.setOnTouchListener(this);
ImageView imageView5 = this.ivStar_5;
if (imageView5 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5");
imageView5 = null;
}
imageView5.setOnTouchListener(this);
this.stringArray = getMessageArray();
Intent intent = getIntent();
if (intent == null || (bundleExtra = intent.getBundleExtra("picked_data")) == null) {
z = false;
} else {
Serializable serializable = bundleExtra.getSerializable("products");
v.checkNotNull(serializable, "null cannot be cast to non-null type java.util.ArrayList<com.bigbasket.bbinstant.core.machine.entity.Product>");
this.listProducts = (ArrayList) serializable;
this.quantity = String.valueOf(bundleExtra.getString("quantity"));
this.totalPrice = String.valueOf(bundleExtra.getString("total_price"));
this.hasPicked = bundleExtra.getBoolean("has_picked");
Serializable serializable2 = bundleExtra.getSerializable("order_id");
v.checkNotNull(serializable2, "null cannot be cast to non-null type com.bigbasket.bbinstant.ui.machine.OrderIdProvider");
this.orderIdProvider = (OrderIdProvider) serializable2;
this.showBottomSheet = bundleExtra.getBoolean("show_bottom_sheet", false);
Object obj = bundleExtra.get("dmb_offer");
this.minBalanceOfferData = obj instanceof MinBalanceOfferData ? (MinBalanceOfferData) obj : null;
z = bundleExtra.getBoolean("is_promo_applicable");
}
setPriceDetails();
if (this.hasPicked) {
LinearLayout linearLayout = this.llRatingBar;
if (linearLayout == null) {
v.throwUninitializedPropertyAccessException("llRatingBar");
linearLayout = null;
}
linearLayout.setVisibility(0);
LinearLayout linearLayout2 = this.llIncomplete;
if (linearLayout2 == null) {
v.throwUninitializedPropertyAccessException("llIncomplete");
linearLayout2 = null;
}
linearLayout2.setVisibility(8);
RelativeLayout relativeLayout = this.tableRowRefund;
if (relativeLayout == null) {
v.throwUninitializedPropertyAccessException("tableRowRefund");
relativeLayout = null;
}
relativeLayout.setVisibility(8);
if (z) {
RelativeLayout relativeLayout2 = this.tableRowRefund;
if (relativeLayout2 == null) {
v.throwUninitializedPropertyAccessException("tableRowRefund");
relativeLayout2 = null;
}
relativeLayout2.setVisibility(0);
TextView textView2 = this.tvRefundMg;
if (textView2 == null) {
v.throwUninitializedPropertyAccessException("tvRefundMg");
textView2 = null;
}
textView2.setText(getString(2131886487));
TextView textView3 = this.tvRefund;
if (textView3 == null) {
v.throwUninitializedPropertyAccessException("tvRefund");
textView3 = null;
}
textView3.setVisibility(8);
}
MoEventManager.a aVar = MoEventManager.Companion;
ArrayList<Product> arrayList = this.listProducts;
if (arrayList == null) {
v.throwUninitializedPropertyAccessException("listProducts");
arrayList = null;
}
Location location = LocationStore.get().getRecentLocations().get(0);
v.checkNotNullExpressionValue(location, "LocationStore.get().recentLocations[0]");
aVar.trackCompletePurchase(TooltipManager.TAG.CONNECTED, arrayList, location);
} else {
LinearLayout linearLayout3 = this.llRatingBar;
if (linearLayout3 == null) {
v.throwUninitializedPropertyAccessException("llRatingBar");
linearLayout3 = null;
}
linearLayout3.setVisibility(8);
LinearLayout linearLayout4 = this.llIncomplete;
if (linearLayout4 == null) {
v.throwUninitializedPropertyAccessException("llIncomplete");
linearLayout4 = null;
}
linearLayout4.setVisibility(0);
RelativeLayout relativeLayout3 = this.tableRowRefund;
if (relativeLayout3 == null) {
v.throwUninitializedPropertyAccessException("tableRowRefund");
relativeLayout3 = null;
}
relativeLayout3.setVisibility(0);
TextView textView4 = this.tvRefund;
if (textView4 == null) {
v.throwUninitializedPropertyAccessException("tvRefund");
textView4 = null;
}
textView4.setText(StringUtils.prefixRupeeSymbol(App.get().getContext(), this.amountPaid));
TextView textView5 = this.tvItemPickedHeader;
if (textView5 == null) {
v.throwUninitializedPropertyAccessException("tvItemPickedHeader");
textView5 = null;
}
textView5.setText(getResources().getString(2131886279));
String excludedWallets = com.bigbasket.bbinstant.core.persistance.d.get().getSettings().getExcludedWallets();
v.checkNotNullExpressionValue(excludedWallets, "get().settings.excludedWallets");
if (j.toList(p.split$default(excludedWallets, new String[]{","}, false, 0, 6, (Object) null)).contains(com.bigbasket.bbinstant.core.persistance.b.get().lastDefaultPayment().value())) {
CardView cardView = this.cvPriceDetails;
if (cardView == null) {
v.throwUninitializedPropertyAccessException("cvPriceDetails");
cardView = null;
}
cardView.setVisibility(8);
TextView textView6 = this.tvPriceDetilsHeader;
if (textView6 == null) {
v.throwUninitializedPropertyAccessException("tvPriceDetilsHeader");
textView6 = null;
}
textView6.setVisibility(8);
}
MoEventManager.a aVar2 = MoEventManager.Companion;
ArrayList<Product> arrayList2 = this.listProducts;
if (arrayList2 == null) {
v.throwUninitializedPropertyAccessException("listProducts");
arrayList2 = null;
}
String productid = arrayList2.get(0).getProductid();
v.checkNotNullExpressionValue(productid, "listProducts.get(0).productid");
int i = this.subTotal;
ArrayList<Product> arrayList3 = this.listProducts;
if (arrayList3 == null) {
v.throwUninitializedPropertyAccessException("listProducts");
arrayList3 = null;
}
String name = arrayList3.get(0).getName();
v.checkNotNullExpressionValue(name, "listProducts.get(0).name");
ArrayList<Product> arrayList4 = this.listProducts;
if (arrayList4 == null) {
v.throwUninitializedPropertyAccessException("listProducts");
arrayList4 = null;
}
String category = arrayList4.get(0).getCategory();
v.checkNotNullExpressionValue(category, "listProducts.get(0).category");
Location location2 = LocationStore.get().getRecentLocations().get(0);
v.checkNotNullExpressionValue(location2, "LocationStore.get().recentLocations[0]");
aVar2.trackInCompletePurchase(TooltipManager.TAG.CONNECTED, productid, i, 0, name, category, location2);
}
TextView textView7 = this.tvTotalAmout;
if (textView7 == null) {
v.throwUninitializedPropertyAccessException("tvTotalAmout");
textView7 = null;
}
textView7.setText(StringUtils.prefixRupeeSymbol(App.get().getContext(), this.subTotal));
TextView textView8 = this.tvOfferDiscount;
if (textView8 == null) {
v.throwUninitializedPropertyAccessException("tvOfferDiscount");
textView8 = null;
}
textView8.setText(StringUtils.prefixRupeeSymbol(App.get().getContext(), this.offerDiscount));
TextView textView9 = this.tvPaidAmout;
if (textView9 == null) {
v.throwUninitializedPropertyAccessException("tvPaidAmout");
} else {
textView = textView9;
}
textView.setText(StringUtils.prefixRupeeSymbol(App.get().getContext(), this.amountPaid));
}
private final void manageProductItemList() {
ArrayList<Product> arrayList = this.listProducts;
com.bigbasket.bbinstant.ui.invoice.adapters.a aVar = null;
if (arrayList == null) {
v.throwUninitializedPropertyAccessException("listProducts");
arrayList = null;
}
this.itemAdapter = new com.bigbasket.bbinstant.ui.invoice.adapters.a(this, arrayList);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
RecyclerView recyclerView = this.rclPickedItems;
if (recyclerView == null) {
v.throwUninitializedPropertyAccessException("rclPickedItems");
recyclerView = null;
}
recyclerView.setLayoutManager(linearLayoutManager);
RecyclerView recyclerView2 = this.rclPickedItems;
if (recyclerView2 == null) {
v.throwUninitializedPropertyAccessException("rclPickedItems");
recyclerView2 = null;
}
com.bigbasket.bbinstant.ui.invoice.adapters.a aVar2 = this.itemAdapter;
if (aVar2 == null) {
v.throwUninitializedPropertyAccessException("itemAdapter");
} else {
aVar = aVar2;
}
recyclerView2.setAdapter(aVar);
}
private final void observeLiveData() {
f0 f0Var = new f0(Reflection.getOrCreateKotlinClass(ThankYouViewModel.class), new c(this), new b(this), new d(null, this));
observeLiveData$lambda$2(f0Var).fetchBannerApi();
observeLiveData$lambda$2(f0Var).getThankYouLiveData().observe(this, new f(new e()));
}
private static final ThankYouViewModel observeLiveData$lambda$2(kotlin.f fVar) {
return (ThankYouViewModel) fVar.getValue();
}
private final void opnenOfferBottomSheet(Bundle bundle, LinearLayout linearLayout) {
BottomSheetDialogFragment minBalanceOfferSheet = MinBalanceOfferSheet.getInstance();
if (minBalanceOfferSheet.isAdded() || getSupportFragmentManager() == null) {
return;
}
minBalanceOfferSheet.setArguments(bundle);
minBalanceOfferSheet.show(getSupportFragmentManager(), "NA");
linearLayout.setVisibility(8);
}
private final void setPriceDetails() {
ArrayList<Product> arrayList = this.listProducts;
if (arrayList == null) {
v.throwUninitializedPropertyAccessException("listProducts");
arrayList = null;
}
Iterator<Product> it = arrayList.iterator();
while (it.hasNext()) {
Product next = it.next();
int i = this.amountPaid;
String price = next.getPrice();
v.checkNotNullExpressionValue(price, "prod.price");
int parseInt = Integer.parseInt(price);
String checkoutQty = next.getCheckoutQty();
v.checkNotNullExpressionValue(checkoutQty, "prod.checkoutQty");
this.amountPaid = i + (parseInt * Integer.parseInt(checkoutQty));
if (next.getMasterPrice() != null) {
int i2 = this.subTotal;
String masterPrice = next.getMasterPrice();
v.checkNotNullExpressionValue(masterPrice, "prod.masterPrice");
int parseInt2 = Integer.parseInt(masterPrice);
String checkoutQty2 = next.getCheckoutQty();
v.checkNotNullExpressionValue(checkoutQty2, "prod.checkoutQty");
this.subTotal = i2 + (parseInt2 * Integer.parseInt(checkoutQty2));
} else {
int i3 = this.subTotal;
String price2 = next.getPrice();
v.checkNotNullExpressionValue(price2, "prod.price");
int parseInt3 = Integer.parseInt(price2);
String checkoutQty3 = next.getCheckoutQty();
v.checkNotNullExpressionValue(checkoutQty3, "prod.checkoutQty");
this.subTotal = i3 + (parseInt3 * Integer.parseInt(checkoutQty3));
}
}
this.offerDiscount = this.subTotal - this.amountPaid;
}
private final boolean shouldWeCelebrate() {
Boolean defaultsBoolean = com.bigbasket.bbinstant.core.persistance.c.get().getDefaultsBoolean(Constants.Preference.SHOULD_SHOW_DMB_CELECREATION, true);
v.checkNotNullExpressionValue(defaultsBoolean, "get().getDefaultsBoolean…W_DMB_CELECREATION, true)");
return defaultsBoolean.booleanValue();
}
private final void startRatingActivity(int i) {
Intent intent = new Intent(this, (Class<?>) RatingActivity.class);
intent.putExtra("rating", i);
OrderIdProvider orderIdProvider = this.orderIdProvider;
if (orderIdProvider == null) {
v.throwUninitializedPropertyAccessException("orderIdProvider");
orderIdProvider = null;
}
intent.putExtra("order_id", orderIdProvider);
startActivityForResult(intent, 1000);
}
@Override
protected void onActivityResult(int i, int i2, Intent intent) {
Bundle extras;
Bundle extras2;
super.onActivityResult(i, i2, intent);
ImageView imageView = null;
if (i == 1000 && i2 == 2000) {
Object obj = (intent == null || (extras2 = intent.getExtras()) == null) ? null : extras2.get("is_skipped");
v.checkNotNull(obj, "null cannot be cast to non-null type kotlin.Boolean");
if (((Boolean) obj).booleanValue()) {
LinearLayout linearLayout = this.llThankyouFeedback;
if (linearLayout == null) {
v.throwUninitializedPropertyAccessException("llThankyouFeedback");
linearLayout = null;
}
linearLayout.setVisibility(8);
} else {
LinearLayout linearLayout2 = this.llThankyouFeedback;
if (linearLayout2 == null) {
v.throwUninitializedPropertyAccessException("llThankyouFeedback");
linearLayout2 = null;
}
linearLayout2.setVisibility(0);
LinearLayout linearLayout3 = this.llRatingBar;
if (linearLayout3 == null) {
v.throwUninitializedPropertyAccessException("llRatingBar");
linearLayout3 = null;
}
linearLayout3.setVisibility(8);
}
}
Object obj2 = (intent == null || (extras = intent.getExtras()) == null) ? null : extras.get("rating");
Integer num = obj2 instanceof Integer ? (Integer) obj2 : null;
if (num != null) {
int intValue = num.intValue();
handleRationBar(intValue);
if (intValue == 1) {
ImageView imageView2 = this.ivStar_1;
if (imageView2 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1");
imageView2 = null;
}
imageView2.setImageResource(2131231286);
ImageView imageView3 = this.ivStar_2;
if (imageView3 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2");
imageView3 = null;
}
imageView3.setImageResource(2131231285);
ImageView imageView4 = this.ivStar_3;
if (imageView4 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3");
imageView4 = null;
}
imageView4.setImageResource(2131231285);
ImageView imageView5 = this.ivStar_4;
if (imageView5 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4");
imageView5 = null;
}
imageView5.setImageResource(2131231285);
ImageView imageView6 = this.ivStar_5;
if (imageView6 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5");
} else {
imageView = imageView6;
}
imageView.setImageResource(2131231285);
return;
}
if (intValue == 2) {
ImageView imageView7 = this.ivStar_1;
if (imageView7 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1");
imageView7 = null;
}
imageView7.setImageResource(2131231286);
ImageView imageView8 = this.ivStar_2;
if (imageView8 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2");
imageView8 = null;
}
imageView8.setImageResource(2131231286);
ImageView imageView9 = this.ivStar_3;
if (imageView9 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3");
imageView9 = null;
}
imageView9.setImageResource(2131231285);
ImageView imageView10 = this.ivStar_4;
if (imageView10 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4");
imageView10 = null;
}
imageView10.setImageResource(2131231285);
ImageView imageView11 = this.ivStar_5;
if (imageView11 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5");
} else {
imageView = imageView11;
}
imageView.setImageResource(2131231285);
return;
}
if (intValue == 3) {
ImageView imageView12 = this.ivStar_1;
if (imageView12 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1");
imageView12 = null;
}
imageView12.setImageResource(2131231284);
ImageView imageView13 = this.ivStar_2;
if (imageView13 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2");
imageView13 = null;
}
imageView13.setImageResource(2131231284);
ImageView imageView14 = this.ivStar_3;
if (imageView14 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3");
imageView14 = null;
}
imageView14.setImageResource(2131231284);
ImageView imageView15 = this.ivStar_4;
if (imageView15 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4");
imageView15 = null;
}
imageView15.setImageResource(2131231285);
ImageView imageView16 = this.ivStar_5;
if (imageView16 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5");
} else {
imageView = imageView16;
}
imageView.setImageResource(2131231285);
return;
}
if (intValue == 4) {
ImageView imageView17 = this.ivStar_1;
if (imageView17 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1");
imageView17 = null;
}
imageView17.setImageResource(2131231284);
ImageView imageView18 = this.ivStar_2;
if (imageView18 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2");
imageView18 = null;
}
imageView18.setImageResource(2131231284);
ImageView imageView19 = this.ivStar_3;
if (imageView19 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3");
imageView19 = null;
}
imageView19.setImageResource(2131231284);
ImageView imageView20 = this.ivStar_4;
if (imageView20 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4");
imageView20 = null;
}
imageView20.setImageResource(2131231284);
ImageView imageView21 = this.ivStar_5;
if (imageView21 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5");
} else {
imageView = imageView21;
}
imageView.setImageResource(2131231285);
return;
}
if (intValue != 5) {
return;
}
ImageView imageView22 = this.ivStar_1;
if (imageView22 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1");
imageView22 = null;
}
imageView22.setImageResource(2131231284);
ImageView imageView23 = this.ivStar_2;
if (imageView23 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2");
imageView23 = null;
}
imageView23.setImageResource(2131231284);
ImageView imageView24 = this.ivStar_3;
if (imageView24 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3");
imageView24 = null;
}
imageView24.setImageResource(2131231284);
ImageView imageView25 = this.ivStar_4;
if (imageView25 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4");
imageView25 = null;
}
imageView25.setImageResource(2131231284);
ImageView imageView26 = this.ivStar_5;
if (imageView26 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5");
} else {
imageView = imageView26;
}
imageView.setImageResource(2131231284);
}
}
@Override
public void onBackPressed() {
setResult(this.RESULT_RATING_THANK_CLOSE);
super.onBackPressed();
}
@Override
protected void onCreate(Bundle bundle) {
MinBalanceOfferData minBalanceOfferData;
super.onCreate(bundle);
setContentView(2131558531);
initViews();
manageProductItemList();
handleUIClicks();
observeLiveData();
if (!this.showBottomSheet || (minBalanceOfferData = this.minBalanceOfferData) == null) {
return;
}
createBottomSheet(minBalanceOfferData);
attachTimer();
}
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
ImageView imageView = null;
Integer valueOf = view != null ? Integer.valueOf(view.getId()) : null;
if (valueOf != null && valueOf.intValue() == 2131362213) {
ImageView imageView2 = this.ivStar_1;
if (imageView2 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1");
imageView2 = null;
}
imageView2.setImageResource(2131231286);
ImageView imageView3 = this.ivStar_2;
if (imageView3 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2");
imageView3 = null;
}
imageView3.setImageResource(2131231285);
ImageView imageView4 = this.ivStar_3;
if (imageView4 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3");
imageView4 = null;
}
imageView4.setImageResource(2131231285);
ImageView imageView5 = this.ivStar_4;
if (imageView5 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4");
imageView5 = null;
}
imageView5.setImageResource(2131231285);
ImageView imageView6 = this.ivStar_5;
if (imageView6 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5");
} else {
imageView = imageView6;
}
imageView.setImageResource(2131231285);
handleRationBar(1);
startRatingActivity(1);
return false;
}
if (valueOf != null && valueOf.intValue() == 2131362215) {
ImageView imageView7 = this.ivStar_1;
if (imageView7 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1");
imageView7 = null;
}
imageView7.setImageResource(2131231286);
ImageView imageView8 = this.ivStar_2;
if (imageView8 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2");
imageView8 = null;
}
imageView8.setImageResource(2131231286);
ImageView imageView9 = this.ivStar_3;
if (imageView9 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3");
imageView9 = null;
}
imageView9.setImageResource(2131231285);
ImageView imageView10 = this.ivStar_4;
if (imageView10 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4");
imageView10 = null;
}
imageView10.setImageResource(2131231285);
ImageView imageView11 = this.ivStar_5;
if (imageView11 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5");
} else {
imageView = imageView11;
}
imageView.setImageResource(2131231285);
handleRationBar(2);
startRatingActivity(2);
return false;
}
if (valueOf != null && valueOf.intValue() == 2131362217) {
ImageView imageView12 = this.ivStar_1;
if (imageView12 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1");
imageView12 = null;
}
imageView12.setImageResource(2131231284);
ImageView imageView13 = this.ivStar_2;
if (imageView13 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2");
imageView13 = null;
}
imageView13.setImageResource(2131231284);
ImageView imageView14 = this.ivStar_3;
if (imageView14 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3");
imageView14 = null;
}
imageView14.setImageResource(2131231284);
ImageView imageView15 = this.ivStar_4;
if (imageView15 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4");
imageView15 = null;
}
imageView15.setImageResource(2131231285);
ImageView imageView16 = this.ivStar_5;
if (imageView16 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5");
} else {
imageView = imageView16;
}
imageView.setImageResource(2131231285);
handleRationBar(3);
startRatingActivity(3);
return false;
}
if (valueOf != null && valueOf.intValue() == 2131362219) {
ImageView imageView17 = this.ivStar_1;
if (imageView17 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1");
imageView17 = null;
}
imageView17.setImageResource(2131231284);
ImageView imageView18 = this.ivStar_2;
if (imageView18 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2");
imageView18 = null;
}
imageView18.setImageResource(2131231284);
ImageView imageView19 = this.ivStar_3;
if (imageView19 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3");
imageView19 = null;
}
imageView19.setImageResource(2131231284);
ImageView imageView20 = this.ivStar_4;
if (imageView20 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4");
imageView20 = null;
}
imageView20.setImageResource(2131231284);
ImageView imageView21 = this.ivStar_5;
if (imageView21 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5");
} else {
imageView = imageView21;
}
imageView.setImageResource(2131231285);
handleRationBar(4);
startRatingActivity(4);
return false;
}
if (valueOf == null || valueOf.intValue() != 2131362221) {
return false;
}
ImageView imageView22 = this.ivStar_1;
if (imageView22 == null) {
v.throwUninitializedPropertyAccessException("ivStar_1");
imageView22 = null;
}
imageView22.setImageResource(2131231284);
ImageView imageView23 = this.ivStar_2;
if (imageView23 == null) {
v.throwUninitializedPropertyAccessException("ivStar_2");
imageView23 = null;
}
imageView23.setImageResource(2131231284);
ImageView imageView24 = this.ivStar_3;
if (imageView24 == null) {
v.throwUninitializedPropertyAccessException("ivStar_3");
imageView24 = null;
}
imageView24.setImageResource(2131231284);
ImageView imageView25 = this.ivStar_4;
if (imageView25 == null) {
v.throwUninitializedPropertyAccessException("ivStar_4");
imageView25 = null;
}
imageView25.setImageResource(2131231284);
ImageView imageView26 = this.ivStar_5;
if (imageView26 == null) {
v.throwUninitializedPropertyAccessException("ivStar_5");
} else {
imageView = imageView26;
}
imageView.setImageResource(2131231284);
handleRationBar(5);
startRatingActivity(5);
return false;
}
}