正在查看: OLX India v19.42.007 应用的 SettingsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 SettingsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.olxgroup.panamera.app.users.myAccount.activities;
import android.R;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.os.Bundle;
import android.view.View;
import com.olx.southasia.databinding.w0;
import com.olxgroup.panamera.app.common.infra.m2;
import com.olxgroup.panamera.app.common.utils.h1;
import com.olxgroup.panamera.app.users.myAccount.views.ListItem;
import com.olxgroup.panamera.domain.users.myaccount.presentation_contract.SettingsContract;
import com.olxgroup.panamera.domain.users.myaccount.presentation_impl.SettingsPresenter;
import olx.com.delorean.dialog.u;
public class SettingsActivity extends a0 implements SettingsContract.IView {
SettingsPresenter b0;
public static Intent a3() {
return new Intent((Context) m2.b, (Class<?>) SettingsActivity.class);
}
public void c3(View view) {
Z2();
}
public void d3(View view) {
W2();
}
public void e3(View view) {
X2();
}
public void f3(View view) {
V2();
}
public void g3(View view) {
Y2();
}
public void h3(View view) {
U2();
}
public void i3(DialogInterface dialogInterface, int i) {
this.b0.deactivateConfirmClicked();
finish();
}
public void j3(DialogInterface dialogInterface, int i) {
this.b0.deactivateCancelClicked();
}
public void k3(DialogInterface dialogInterface, int i) {
this.b0.onConfirmationDialogAction(SettingsPresenter.Action.CANCEL);
}
public void l3(DialogInterface dialogInterface, int i) {
this.b0.onConfirmationDialogAction(SettingsPresenter.Action.LOG_OUT);
}
public void m3(DialogInterface dialogInterface, int i) {
this.b0.logoutConfirmClicked();
finish();
}
public void U2() {
this.b0.communicationPreferencesButtonClicked();
}
public void V2() {
this.b0.deactivateButtonClicked();
}
public void W2() {
this.b0.logoutButtonClicked();
}
public void X2() {
this.b0.logoutFromAllDevicesButtonClicked();
}
public void Y2() {
this.b0.notificationsButtonClicked();
}
public void Z2() {
this.b0.privacyButtonClicked();
}
public w0 H2() {
return w0.Q(getLayoutInflater());
}
@Override
public void closeView() {
finish();
}
@Override
public void hideLoading() {
((com.olxgroup.panamera.app.common.activities.k) this).Z.C.setVisibility(8);
}
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
this.b0.setView(this);
this.b0.start();
this.b0.handleIntentFlags(getIntent().getStringExtra("origin_source"), getIntent().getBooleanExtra("prompt_logoutall", false));
((com.olxgroup.panamera.app.common.activities.k) this).Z.G.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SettingsActivity.this.c3(view);
}
});
((com.olxgroup.panamera.app.common.activities.k) this).Z.D.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SettingsActivity.this.d3(view);
}
});
((com.olxgroup.panamera.app.common.activities.k) this).Z.E.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SettingsActivity.this.e3(view);
}
});
((com.olxgroup.panamera.app.common.activities.k) this).Z.B.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SettingsActivity.this.f3(view);
}
});
((com.olxgroup.panamera.app.common.activities.k) this).Z.F.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SettingsActivity.this.g3(view);
}
});
((com.olxgroup.panamera.app.common.activities.k) this).Z.A.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SettingsActivity.this.h3(view);
}
});
}
public boolean onSupportNavigateUp() {
onBackPressed();
return true;
}
@Override
public void openCommunicationPreference() {
startActivity(CommunicationPreferencesActivity.T2(this));
}
@Override
public void openHome() {
startActivity(olx.com.delorean.a.V());
}
@Override
public void openNotifications() {
startActivity(NotificationPreferencesActivity.r3());
}
@Override
public void openPrivacy() {
startActivity(PrivacyActivity.N2());
}
@Override
public void setActionBarTitle() {
setSupportActionBar(((com.olxgroup.panamera.app.common.activities.k) this).Z.H);
androidx.appcompat.app.a supportActionBar = getSupportActionBar();
if (supportActionBar != null) {
supportActionBar.w(true);
supportActionBar.D(com.olx.southasia.p.my_account_settings);
((com.olxgroup.panamera.app.common.activities.k) this).Z.H.getNavigationIcon().setColorFilter(androidx.core.content.b.getColor(this, com.olx.southasia.e.toolbar_text), PorterDuff.Mode.SRC_ATOP);
}
}
@Override
public void setListItems(boolean z, boolean z2) {
String string;
ListItem listItem = ((com.olxgroup.panamera.app.common.activities.k) this).Z.G;
String string2 = getString(com.olx.southasia.p.my_account_privacy);
if (z) {
string = getString(z2 ? com.olx.southasia.p.my_account_change_password : com.olx.southasia.p.my_account_create_password);
} else {
string = getString(com.olx.southasia.p.my_account_privacy_sub);
}
listItem.b(true, string2, string);
((com.olxgroup.panamera.app.common.activities.k) this).Z.F.b(false, getString(com.olx.southasia.p.my_account_settings_notifications), getString(com.olx.southasia.p.my_account_settings_notifications_sub));
((com.olxgroup.panamera.app.common.activities.k) this).Z.D.b(false, getString(com.olx.southasia.p.my_account_logout), null);
((com.olxgroup.panamera.app.common.activities.k) this).Z.E.b(false, getString(com.olx.southasia.p.my_account_logout_from_all_devices), null);
((com.olxgroup.panamera.app.common.activities.k) this).Z.B.b(false, getString(com.olx.southasia.p.my_account_deactivate_account), null);
((com.olxgroup.panamera.app.common.activities.k) this).Z.A.b(true, getString(com.olx.southasia.p.communication_preferences), null);
}
@Override
public void showCommunicationPreference(boolean z) {
((com.olxgroup.panamera.app.common.activities.k) this).Z.A.setVisibility(z ? 0 : 8);
}
@Override
public void showDeactivateConfirmDialog() {
new u.a(this).e(getString(com.olx.southasia.p.account_deactivate_confirm)).l(getString(com.olx.southasia.p.account_deactivate_ok)).g(getString(com.olx.southasia.p.account_deactivate_cancel)).b(false).c(true).k(new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
SettingsActivity.this.i3(dialogInterface, i);
}
}).i(new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
SettingsActivity.this.j3(dialogInterface, i);
}
}).m();
}
@Override
public void showErrorMessage() {
h1.c(findViewById(R.id.content), com.olx.southasia.p.my_account_logout_all_failed_error, -1);
}
@Override
public void showLoading() {
((com.olxgroup.panamera.app.common.activities.k) this).Z.C.setVisibility(0);
}
@Override
public void showLogoutAllConfirmationDialog() {
new u.a(this).n(getString(com.olx.southasia.p.my_account_logout_all_title)).e(getString(com.olx.southasia.p.my_account_logout_all_message)).l(getString(com.olx.southasia.p.my_account_logout_all_cta_positive_text)).g(getString(com.olx.southasia.p.my_account_logout_all_cta_negative_text)).k(new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
SettingsActivity.this.l3(dialogInterface, i);
}
}).i(new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
SettingsActivity.this.k3(dialogInterface, i);
}
}).m();
}
@Override
public void showLogoutConfirmDialog() {
new u.a(this).n(getString(com.olx.southasia.p.my_account_logout)).e(getString(com.olx.southasia.p.logout_alert_message)).l(getString(com.olx.southasia.p.logout_alert_yes)).g(getString(com.olx.southasia.p.logout_alert_no)).b(false).c(true).k(new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
SettingsActivity.this.m3(dialogInterface, i);
}
}).m();
}
}