正在查看: OLX India v19.42.007 应用的 CBActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 CBActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.payu.custombrowser;
import android.app.AlertDialog;
import android.app.NotificationManager;
import android.content.Intent;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;
import androidx.appcompat.app.a;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.fragment.app.Fragment;
import com.olxgroup.panamera.domain.seller.posting.entity.PostingDraft;
import com.payu.custombrowser.bean.CustomBrowserConfig;
import com.payu.custombrowser.util.CBConstant;
import java.util.Iterator;
import org.json.JSONException;
public class CBActivity extends androidx.appcompat.app.d {
protected static ArrayAdapter V;
protected static View W;
protected static View X;
CustomBrowserConfig Q;
private Bank R;
private androidx.appcompat.app.c S;
private AlertDialog T;
com.payu.custombrowser.util.b U;
private void a() {
if (V == null || this.Q.getCbDrawerCustomMenu() == 0) {
return;
}
DrawerLayout findViewById = findViewById(g0.drawer_layout);
ListView listView = (ListView) getLayoutInflater().inflate(this.Q.getCbDrawerCustomMenu(), (ViewGroup) null, false);
DrawerLayout.f fVar = new DrawerLayout.f(-1, -1);
fVar.a = 8388611;
if (listView.getParent() != null) {
((ViewGroup) listView.getParent()).removeView(listView);
}
findViewById.addView(listView);
listView.setLayoutParams(fVar);
listView.setAdapter((ListAdapter) V);
com.payu.custombrowser.bean.b.SINGLETON.getPayuCustomBrowserCallback().getNavigationDrawerObject(findViewById);
this.R.addEventAnalytics("CBActivity", "initDrawer");
}
public void cbSetToolBar(View view) {
if (view == null || getSupportActionBar() == null) {
if (getSupportActionBar() != null) {
getSupportActionBar().m();
}
} else {
getSupportActionBar().y(false);
if (view.getParent() != null) {
((ViewGroup) view.getParent()).removeView(view);
}
getSupportActionBar().u(view, new a.a(-1, -1));
getSupportActionBar().x(true);
view.getParent().setContentInsetsAbsolute(0, 0);
}
}
protected void onActivityResult(int i, int i2, Intent intent) {
super/*androidx.fragment.app.r*/.onActivityResult(i, i2, intent);
Iterator it = getSupportFragmentManager().F0().iterator();
while (it.hasNext()) {
((Fragment) it.next()).onActivityResult(i, i2, intent);
}
}
public void onBackPressed() {
CustomBrowserConfig customBrowserConfig = this.Q;
if (customBrowserConfig == null || customBrowserConfig.getDisableBackButtonDialog() == 1) {
this.R.x5();
this.R.addEventAnalytics("user_input", "m_back_button");
com.payu.custombrowser.bean.b bVar = com.payu.custombrowser.bean.b.SINGLETON;
if (bVar.getPayuCustomBrowserCallback() != null) {
bVar.getPayuCustomBrowserCallback().onBackButton(null);
}
finish();
return;
}
Bank bank = this.R;
if (!bank.isCbBottomSheetExpanded) {
bank.addEventAnalytics("user_input", "payu_back_button".toLowerCase());
this.R.showBackButtonDialog();
return;
}
b bVar2 = bank.M0;
if (bVar2 != null && bVar2.isAdded()) {
this.R.M0.backButton();
} else {
this.R.addEventAnalytics("user_input", "payu_back_button".toLowerCase());
this.R.showBackButtonDialog();
}
}
protected void onCreate(Bundle bundle) {
super/*androidx.fragment.app.r*/.onCreate((Bundle) null);
setContentView(h0.cb_payments);
this.R = new Bank(this);
this.U = new com.payu.custombrowser.util.b();
Bundle bundle2 = new Bundle();
CustomBrowserConfig customBrowserConfig = (CustomBrowserConfig) getIntent().getParcelableExtra("cb_config");
this.Q = customBrowserConfig;
if (customBrowserConfig == null) {
com.payu.custombrowser.bean.b.SINGLETON.getPayuCustomBrowserCallback().onCBErrorReceived(CBConstant.errorCodes.MISSING_PARAMETER_EXCEPTION, getString(i0.custombrowserconfig_is_null));
return;
}
customBrowserConfig.setProgressDialogCustomView(X);
this.U.S(this.Q);
bundle2.putParcelable("cb_config", this.Q);
this.R.setArguments(bundle2);
cbSetToolBar(W);
a();
getSupportFragmentManager().s().b(g0.main_frame, this.R).j();
this.R.addEventAnalytics("CBActivity", "_launched".toLowerCase());
}
public void onDestroy() {
AlertDialog alertDialog = this.T;
if (alertDialog != null && alertDialog.isShowing()) {
this.T.dismiss();
this.T.cancel();
}
androidx.appcompat.app.c cVar = this.S;
if (cVar != null && cVar.isShowing()) {
this.S.dismiss();
this.S.cancel();
}
Bank bank = this.R;
if (bank != null && bank.getSnoozeLoaderView() != null) {
this.R.getSnoozeLoaderView().c();
this.R.setSnoozeLoaderView(null);
}
com.payu.custombrowser.bean.b bVar = com.payu.custombrowser.bean.b.SINGLETON;
if (bVar.getPayuCustomBrowserCallback() != null) {
bVar.getPayuCustomBrowserCallback().onPaymentTerminate();
bVar.setPayuCustomBrowserCallback(null);
}
X = null;
W = null;
NotificationManager notificationManager = (NotificationManager) getSystemService("notification");
if (notificationManager != null) {
notificationManager.cancel(CBConstant.SNOOZE_NOTIFICATION_ID);
}
notificationManager.cancel(63);
super.onDestroy();
}
protected void onNewIntent(Intent intent) {
Bank bank;
super/*androidx.activity.ComponentActivity*/.onNewIntent(intent);
if (intent == null || !intent.getStringExtra(CBConstant.SENDER).contentEquals(CBConstant.SNOOZE_SERVICE) || (bank = this.R) == null) {
return;
}
bank.G1 = null;
bank.F1 = false;
if (intent.getExtras() == null || !intent.getExtras().getBoolean(CBConstant.VERIFICATION_MSG_RECEIVED)) {
this.R.addEventAnalytics("internet_restored_notification_click", PostingDraft.NO_AD_ID);
this.R.resumeTransaction(intent);
return;
}
try {
String O = this.U.O(intent.getExtras().getString(CBConstant.PAYU_RESPONSE), getString(i0.cb_snooze_verify_api_status));
if (O == null || !O.equalsIgnoreCase(CBConstant.TRANSACTION_STATUS_SUCCESS)) {
this.R.addEventAnalytics("transaction_not_verified_notification_click", PostingDraft.NO_AD_ID);
} else {
this.R.addEventAnalytics("transaction_verified_notification_click", PostingDraft.NO_AD_ID);
}
} catch (JSONException e) {
Log.d(getClass().getSimpleName(), "Exception " + e.getMessage());
}
this.R.showTransactionStatusDialog(intent.getExtras().getString(CBConstant.PAYU_RESPONSE), true);
}
protected void onPause() {
super/*androidx.fragment.app.r*/.onPause();
}
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
super/*androidx.fragment.app.r*/.onRequestPermissionsResult(i, strArr, iArr);
Iterator it = getSupportFragmentManager().F0().iterator();
while (it.hasNext()) {
((Fragment) it.next()).onRequestPermissionsResult(i, strArr, iArr);
}
}
protected void onResume() {
super/*androidx.fragment.app.r*/.onResume();
}
public void onSaveInstanceState(Bundle bundle, PersistableBundle persistableBundle) {
}
protected void onStart() {
super.onStart();
}
}