public void onResume() {
   org.p087a.p088a.JoinPoint a = Factory.m15067a(f10963H, (Object) this, (Object) this);
   try {
     ActivityTraceAspect.m12823a().m12826b(a);
     super.onResume();
     if (this.f10993x) {
       m14510f();
     }
     ActivityTraceAspect.m12823a().m12827c(a);
   } catch (Throwable th) {
     ActivityTraceAspect.m12823a().m12827c(a);
   }
 }
示例#2
0
 protected void onResume() {
   org.p087a.p088a.JoinPoint a = Factory.m15067a(f9614F, (Object) this, (Object) this);
   try {
     ActivityTraceAspect.m12823a().m12825a(a);
     super.onResume();
     if (Utils.m14909a(getApplicationContext())) {
       m13541a();
     } else {
       m13543a((int) R.string.no_internet_sadface);
     }
     ActivityTraceAspect.m12823a().m12828d(a);
   } catch (Throwable th) {
     ActivityTraceAspect.m12823a().m12828d(a);
   }
 }
 public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
   try {
     TraceMachine.enterMethod(this._nr_trace, "q#onCreateView", null);
   } catch (NoSuchFieldError e) {
     while (true) {
       TraceMachine.enterMethod(null, "q#onCreateView", null);
       break;
     }
   }
   ActivityTraceAspect.m12823a()
       .m12826b(
           Factory.m15069a(
               f10962G,
               (Object) this,
               (Object) this,
               new Object[] {layoutInflater, viewGroup, bundle}));
   View inflate =
       layoutInflater.inflate(R.layout.fragment_local_booking_request, viewGroup, false);
   this.f10975f = (KaaliPeeliProgressView) inflate.findViewById(R.id.progress_view);
   this.f10975f.f11316b = TraceMachine.UNHEALTHY_TRACE_TIMEOUT;
   inflate.findViewById(R.id.button_retry).setOnClickListener(this);
   inflate.findViewById(R.id.button_retry_cancel).setOnClickListener(this);
   this.f10976g = (ImageView) inflate.findViewById(R.id.kp_image_view);
   TextView textView = (TextView) inflate.findViewById(R.id.label_progess_text);
   if (m14538c()) {
     this.f10976g.setImageResource(R.drawable.ic_auto_selected);
     textView.setText(R.string.text_auto_waiting);
   } else {
     this.f10976g.setImageResource(R.drawable.ic_kp_car_selected);
     textView.setText(R.string.text_kp_waiting);
   }
   this.f10977h = (Button) inflate.findViewById(R.id.kp_button_cancel);
   this.f10977h.setEnabled(false);
   this.f10977h.setOnClickListener(this);
   this.f10975f.setOnProgressFinishListner(new LocalTaxiBookingRequestFragment(this));
   if (!this.f10993x) {
     m14523l();
   }
   TraceMachine.exitMethod();
   return inflate;
 }
 public void onCreate(Bundle bundle) {
   TraceMachine.startTracing("q");
   try {
     TraceMachine.enterMethod(this._nr_trace, "q#onCreate", null);
   } catch (NoSuchFieldError e) {
     while (true) {
       TraceMachine.enterMethod(null, "q#onCreate", null);
       break;
     }
   }
   ActivityTraceAspect.m12823a()
       .m12826b(Factory.m15068a(f10961F, (Object) this, (Object) this, (Object) bundle));
   super.onCreate(bundle);
   if (getArguments() != null) {
     Bundle arguments = getArguments();
     this.f10991v = arguments.getString(Constants.CITY);
     this.f10980k = arguments.getString("category_id");
     this.f10981l =
         new LatLng(arguments.getDouble("user_latitude"), arguments.getDouble("user_longitude"));
     this.f10982m = arguments.getString("drop_locality");
     this.f10983n = arguments.getString("drop_locality_id");
     this.f10984o = arguments.getString("drop_landmark");
     this.f10985p = arguments.getString("pickup_landmark");
     this.f10993x = arguments.getBoolean("kp_show_cancel");
     Ola.f11494k = this.f10993x;
     if (arguments.containsKey(Constants.BUNDLE_KP_KRN)) {
       this.f10987r = arguments.getString(Constants.BUNDLE_KP_KRN);
     }
     if (arguments.containsKey("kp_enable_retry")) {
       this.f10994y = arguments.getBoolean("kp_enable_retry");
     }
   }
   this.f10978i = new Handler();
   this.f10979j = (MainActivity) getActivity();
   this.f10979j.f9699d = false;
   OlaApp olaApp = (OlaApp) this.f10979j.getApplication();
   this.f10969D = olaApp.m12878a();
   this.f10970E = olaApp.m12879b();
   this.f10990u = this.f10970E.m12867b(getActivity());
   TraceMachine.exitMethod();
 }
 public void onStart() {
   ApplicationStateMonitor.getInstance().activityStarted();
   ActivityTraceAspect.m12823a().m12826b(Factory.m15067a(f10964I, (Object) this, (Object) this));
   super.onStart();
   EventBus.m3a().m15a((Object) this);
 }
示例#6
0
 protected void onPause() {
   ActivityTraceAspect.m12823a().m12825a(Factory.m15067a(f9613E, (Object) this, (Object) this));
   super.onPause();
   m13555f();
 }
示例#7
0
 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();
 }