public void onClick(View view) { switch (view.getId()) { case R.id.food_intro_button_layout: m13536l(); case R.id.food_intro_back: case R.id.food_menu_back: supportFinishAfterTransition(); case R.id.food_order_faq: startActivity(FaqActivity.m13493a((Context) this, getString(R.string.url_ofd_faq))); case R.id.place_order_button: dt c = this.f9624h.m13209c(); if (Utils.m14924g(c.getPhoneNumber()) && Utils.m14924g(c.getName()) && c.isVerified()) { m13534k(); m13537m(); return; } m13518a( getString(R.string.missing_phone_number_header), getString(R.string.missing_phone_number_desc)); case R.id.food_activity_review_cancel: m13517a("Cancelled"); m13538n(); case R.id.food_activity_review_confirm: Sherlock.m13334a("Ins OFD order placed"); m13517a("Confirmed"); m13539o(); default: } }
public void onSuccess(Object obj) { if (this.f10956a.isAdded()) { BookingCabInfoResponse bookingCabInfoResponse = (BookingCabInfoResponse) obj; if (bookingCabInfoResponse != null && bookingCabInfoResponse.isForceLogout()) { new ForceLogoutCommand(true).m13270a(this.f10956a.getActivity()); } if (bookingCabInfoResponse.getStatus().equalsIgnoreCase("SUCCESS") && bookingCabInfoResponse.getStateId() != AppState.HOME_PAGE.ordinal()) { this.f10956a.m14530p(); if (bookingCabInfoResponse.getStateId() != 5) { this.f10956a.f10988s = bookingCabInfoResponse.getBooking().getBookingId(); } else if (bookingCabInfoResponse.getBookingId() != null) { this.f10956a.f10988s = bookingCabInfoResponse.getBookingId(); } else { bookingCabInfoResponse.getBooking().getBookingId(); } this.f10956a .f10969D .m13218d() .setAppState(AppState.m12881a(bookingCabInfoResponse.getStateId())); this.f10956a.m14527n(); Ola.f11494k = false; HashMap hashMap = new HashMap(); hashMap.put("Local taxi category", this.f10956a.f10980k); if (Utils.m14924g(this.f10956a.f10991v)) { hashMap.put("Booking city", this.f10956a.f10991v); } else { hashMap.put("Booking city", "NA"); } Sherlock.m13340a("Ins KP ride booked", hashMap); this.f10956a.f10968C.m13564a(this.f10956a.f10988s); } } }
public void onSuccess(Object obj) { HashMap hashMap = new HashMap(); if (Utils.m14924g(this.f9590a.f9624h.m13209c().getCity())) { hashMap.put("Booking city", this.f9590a.f9624h.m13209c().getCity()); } else { hashMap.put("Booking city", "NA"); } Sherlock.m13340a("Ins OFD order placed", hashMap); OLog.m13313b("Order successful", new Object[0]); this.f9590a.m13555f(); this.f9590a.m13525d(((CheckoutResponse) obj).getId()); }
public void onFailure(Throwable th) { if (this.f10956a.isAdded()) { HashMap hashMap = new HashMap(); hashMap.put("Local taxi category", this.f10956a.f10980k); if (Utils.m14924g(this.f10956a.f10991v)) { hashMap.put("Booking city", this.f10956a.f10991v); } else { hashMap.put("Booking city", "NA"); } Sherlock.m13342a("Ins KP ride booked", hashMap, (VolleyError) th); OLog.m13310a("Fetch Configuration Request failed", th); } }
public void onFailure(Throwable th) { OLog.m13310a("Failed to place food order", th); VolleyError volleyError = (VolleyError) th; this.f9590a.m13555f(); Object obj = "Network Error"; if (!(volleyError == null || volleyError.f464a == null)) { byte[] bArr = volleyError.f464a.f498b; if (bArr != null) { String str = "Other"; String str2 = new String(bArr); try { bt btVar = (bt) new Gson().m12343a(str2, bt.class); bz bzVar = (bz) new Gson().m12343a(str2, bz.class); if (volleyError.f464a.f497a != HttpStatus.SC_UNPROCESSABLE_ENTITY || bzVar.getPartialItems() == null || bzVar.getPartialItems().isEmpty()) { HashMap hashMap = new HashMap(); if (Utils.m14924g(this.f9590a.f9624h.m13209c().getCity())) { hashMap.put("Booking city", this.f9590a.f9624h.m13209c().getCity()); } else { hashMap.put("Booking city", "NA"); } Sherlock.m13338a( "Ins OFD order placed", "Failure", volleyError, btVar.getText(), true, hashMap); this.f9590a.m13518a(btVar.getHeader(), btVar.getText()); } else { this.f9590a.m13521b(bzVar); } obj = str; } catch (Exception e) { String str3 = str; } } } if (this.f9590a.f9624h.m13209c() != null && this.f9590a.f9624h.m13209c().getCity() != null) { Map hashMap2 = new HashMap(); hashMap2.put("City name", this.f9590a.f9624h.m13209c().getCity()); hashMap2.put(Constants.BUNDLE_TYPE, obj); Localytics.tagEvent("OlaFood error message", hashMap2); } }
private void m14510f() { HashMap hashMap = new HashMap(); hashMap.put("Local taxi category", this.f10980k); if (Utils.m14924g(this.f10991v)) { hashMap.put("Booking city", this.f10991v); } else { hashMap.put("Booking city", "NA"); } Sherlock.m13342a("Ins KP ride booked", hashMap, null); if (getView() != null) { if (m14538c()) { Localytics.tagEvent("AUTO stock out"); } else { Localytics.tagEvent("KP stock out"); } getView().findViewById(R.id.layout_progress).setVisibility(8); View findViewById = getView().findViewById(R.id.layout_retry); findViewById.setVisibility(0); if (Ola.f11494k) { ((Button) getView().findViewById(R.id.button_retry_cancel)).setText("CANCEL"); if (!this.f10994y) { ((Button) getView().findViewById(R.id.button_retry)).setClickable(false); } } else { ((Button) getView().findViewById(R.id.button_retry_cancel)).setText("OK"); ((Button) getView().findViewById(R.id.button_retry)).setClickable(true); } if (Utils.m14909a(this.f10979j.getApplicationContext())) { TextView textView = (TextView) findViewById.findViewById(R.id.no_kp_text); TextView textView2 = (TextView) findViewById.findViewById(R.id.no_kp_sub_text); if (Ola.f11494k) { textView.setText("Booking Cancelled!"); if (m14538c()) { textView2.setText( Ola.f11492i != null ? Ola.f11492i : "Regret to inform that driver cancelled the booking"); return; } else { textView2.setText( Ola.f11492i != null ? Ola.f11492i : "Regret to inform that driver cancelled the booking"); return; } } else if (m14538c()) { textView.setText("No Autos available\nnear you!"); textView2.setText("How about choosing\nanother category?"); return; } else { textView.setText("No Kaali Peelis\nnear you!"); textView2.setText("How about choosing\nanother category?"); return; } } ((TextView) findViewById.findViewById(R.id.no_kp_text)) .setText("No internet connection available!"); ((TextView) findViewById.findViewById(R.id.no_kp_sub_text)) .setText("Please check your settings or try again later."); } }
protected void onCreate(Bundle bundle) { TraceMachine.startTracing("FoodMenuActivity"); try { TraceMachine.enterMethod(this._nr_trace, "FoodMenuActivity#onCreate", null); } catch (NoSuchFieldError e) { while (true) { TraceMachine.enterMethod(null, "FoodMenuActivity#onCreate", null); break; } } ActivityTraceAspect.m12823a() .m12825a(Factory.m15068a(f9611C, (Object) this, (Object) this, (Object) bundle)); super.onCreate(bundle); setContentView(R.layout.food_menu_activity); this.f9620d = findViewById(R.id.food_menu); SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this); if (defaultSharedPreferences.getBoolean(Constants.PREF_FOOD_INTRO, true)) { View inflate = ((ViewStub) findViewById(R.id.stub_food_intro)).inflate(); if (Utils.m14924g(getIntent().getStringExtra("CURRENT_SESSION_CATEGORY"))) { ((FontTextView) inflate.findViewById(R.id.food_intro_button)) .setText( String.format( getString(R.string.food_intro_button_text_dynamic), new Object[] {r0.toUpperCase()})); } inflate.setVisibility(0); inflate.findViewById(R.id.food_intro_button_layout).setOnClickListener(this); inflate.findViewById(R.id.food_intro_back).setOnClickListener(this); defaultSharedPreferences.edit().putBoolean(Constants.PREF_FOOD_INTRO, false).apply(); } this.f9616A = (ViewStub) findViewById(R.id.stub_sad_error); this.f9623g = (OlaApp) getApplication(); this.f9624h = this.f9623g.m12878a(); this.f9621e = (TextView) findViewById(R.id.error_text); this.f9626j = (ViewPager) findViewById(R.id.food_menu_pager); this.f9626j.setOffscreenPageLimit(3); this.f9640x = (RelativeLayout) findViewById(R.id.food_menu_order_review); int applyDimension = (int) TypedValue.applyDimension(1, 20.0f, getResources().getDisplayMetrics()); this.f9626j.setClipToPadding(false); this.f9626j.setPadding(applyDimension, 0, applyDimension, 0); this.f9626j.setPageMargin(-applyDimension); this.f9625i = new C0826a(getSupportFragmentManager(), this.f9627k, null); this.f9626j.setAdapter(this.f9625i); this.f9622f = (RelativeLayout) findViewById(R.id.place_order_button); this.f9622f.setOnClickListener(this); this.f9633q = (TextView) findViewById(R.id.amount_text_view); this.f9638v = (TextView) findViewById(R.id.title_food_category); this.f9637u = (TextView) findViewById(R.id.no_service_text); this.f9635s = (ProgressBar) findViewById(R.id.progressBar_loading); this.f9634r = (ImageView) findViewById(R.id.failed_sad_face); this.f9639w = (RelativeLayout) findViewById(R.id.progress_bar_lay); findViewById(R.id.food_menu_back).setOnClickListener(this); findViewById(R.id.food_order_faq).setOnClickListener(this); findViewById(R.id.food_activity_review_confirm).setOnClickListener(this); findViewById(R.id.food_activity_review_cancel).setOnClickListener(this); findViewById(R.id.food_order_faq).setOnClickListener(this); this.f9640x.setOnClickListener(this); this.f9639w.setVisibility(0); this.f9621e.setText(getResources().getString(R.string.trying_to_fetch_menu)); this.f9621e.setVisibility(0); this.f9635s.setVisibility(0); this.f9620d.setVisibility(8); this.f9636t = new ProgressDialog(this, R.style.TransparentProgressDialog); this.f9636t.setIndeterminateDrawable( getResources().getDrawable(R.drawable.custom_progress_background)); this.f9636t.setCancelable(false); m13550c(); TraceMachine.exitMethod(); }