正在查看: OLX India v19.42.007 应用的 CreditsAndBillingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 CreditsAndBillingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.olxgroup.panamera.app.monetization.payment.activities;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.os.Bundle;
import android.view.View;
import com.olx.southasia.databinding.q;
import com.olx.southasia.k;
import com.olx.southasia.p;
import com.olxgroup.panamera.app.common.infra.m2;
import com.olxgroup.panamera.app.monetization.myOrder.activities.MyOrderActivity;
import com.olxgroup.panamera.app.monetization.myOrder.activities.PackageLandingActivity;
import com.olxgroup.panamera.app.monetization.myOrder.activities.PackageListingActivity;
import com.olxgroup.panamera.domain.monetization.billing.utils.OrderStatusType;
import com.olxgroup.panamera.domain.monetization.listings.utils.FeatureOrigin;
import com.olxgroup.panamera.domain.monetization.listings.utils.MonetizationFeatureCodes;
import com.olxgroup.panamera.domain.monetization.vas.entity.VASPurchaseOrigin;
import com.olxgroup.panamera.domain.users.common.repository.FeatureToggleService;
import com.olxgroup.panamera.domain.users.myaccount.presentation_contract.CreditsAndBillingContract;
import com.olxgroup.panamera.domain.users.myaccount.presentation_impl.CreditsAndBillingPresenter;
import olx.com.delorean.domain.service.ab.ABTestService;
public class CreditsAndBillingActivity extends j implements CreditsAndBillingContract.IView {
CreditsAndBillingPresenter U;
ABTestService V;
FeatureToggleService W;
q X;
public void A2(View view) {
v2();
}
public void B2(View view) {
t2();
}
public void C2(View view) {
s2();
}
public void D2(View view) {
u2();
}
public void E2(View view) {
w2();
}
public static Intent y2() {
return new Intent(m2.b, (Class<?>) CreditsAndBillingActivity.class);
}
private void z2() {
if (this.V.getDraftMonetEnabled()) {
this.X.G.setVisibility(0);
} else {
this.X.G.setVisibility(8);
}
}
public boolean isBillingInfoEnabled() {
return false;
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
q qVar = (q) androidx.databinding.g.j(this, k.activity_credits_billing);
this.X = qVar;
qVar.D.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
CreditsAndBillingActivity.this.A2(view);
}
});
this.X.B.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
CreditsAndBillingActivity.this.B2(view);
}
});
this.X.A.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
CreditsAndBillingActivity.this.C2(view);
}
});
this.X.C.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
CreditsAndBillingActivity.this.D2(view);
}
});
this.X.G.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
CreditsAndBillingActivity.this.E2(view);
}
});
this.U.setView(this);
this.U.start();
}
@Override
protected void onDestroy() {
this.U.onDestroy();
super.onDestroy();
}
public boolean onSupportNavigateUp() {
onBackPressed();
return true;
}
public void openBillingDisabledPopup() {
new olx.com.delorean.dialog.a(this).a();
}
public void openBillingInformation() {
startActivity(olx.com.delorean.a.h());
}
public void openBusinessPackageLanding() {
startActivity(PackageLandingActivity.m0.a(FeatureOrigin.LANDING_BUSINESS, -1, null));
}
public void openInvoices() {
startActivity(olx.com.delorean.a.f());
}
public void openMyOrders() {
startActivity(MyOrderActivity.o3(FeatureOrigin.MYORDERS, OrderStatusType.ACTIVE));
}
public void openViewCart() {
startActivity(PackageListingActivity.u3(0, true, VASPurchaseOrigin.MY_ORDERS, FeatureOrigin.MYORDERS, MonetizationFeatureCodes.ALL, null, null));
}
public void s2() {
this.U.billingInformationButtonClicked(isBillingInfoEnabled());
}
public void setActionBarTitle() {
setSupportActionBar(this.X.E);
androidx.appcompat.app.a supportActionBar = getSupportActionBar();
if (supportActionBar != null) {
supportActionBar.w(true);
supportActionBar.D(p.my_account_invoices_billing);
this.X.E.getNavigationIcon().setColorFilter(androidx.core.content.b.getColor(this, com.olx.southasia.e.toolbar_text), PorterDuff.Mode.SRC_ATOP);
}
}
public void setListItems() {
this.X.D.setVisibility(0);
this.X.D.b(true, getString(p.my_orders), getString(p.my_accounts_orders_sub));
this.X.B.setVisibility(0);
this.X.B.b(true, getString(p.business_package_landing_heading), getString(p.business_package_landing_subheading));
this.X.C.b(true, getString(p.my_account_invoices), getString(p.my_account_invoices_sub));
this.X.A.b(true, getString(p.my_account_billing_info), getString(p.my_account_billing_info_sub));
this.X.G.b(true, getString(p.view_cart), getString(p.my_account_view_cart_description));
z2();
}
void t2() {
this.U.onBusinessLandingButtonClicked();
}
public void u2() {
this.U.invoicesButtonClicked();
}
public void v2() {
this.U.myOrdersButtonClicked();
}
void w2() {
this.U.onViewCartButtonClicked();
}
}