正在查看: Credmex v3.12.2 应用的 AboutUsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Credmex v3.12.2 应用的 AboutUsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.credmex.activity;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.text.TextUtils;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import butterknife.OnClick;
import com.credmex.appconfig.GeneralConfigManager;
import com.credmex.commom.ViewBindingActivity;
import com.credmex.databinding.ActivityAboutUsBinding;
import com.credmex.models.GeneralConfigResponse;
import com.credmex.track.ThirdPartTrackEvents;
import com.credmex.track.ThirdPartTrackLib;
import com.credmex.utils.AppUtil;
import com.credmex.utils.ProtocolInfoUtil;
import com.veda.android.bananalibrary.infrastructure.BaseActivity;
import com.veda.supertoolkit.lifecycle.LifecycleEvent;
import com.veda.supertoolkit.widgets.BaseUtils;
import io.reactivex.disposables.Disposable;
public class AboutUsActivity extends ViewBindingActivity {
private ActivityAboutUsBinding D;
private void c0() {
jumpToWebPage(Uri.parse(((BaseActivity) this).appGlobal.a.a().toString()).buildUpon().path("webview/about-us").appendQueryParameter("isAgreementTemplate", String.valueOf(true)).appendQueryParameter(WebViewActivity.IS_IMMERSIVE_MODE_BY_H5, String.valueOf(1)).build().toString());
}
private void d0() {
String i2 = ProtocolInfoUtil.i(this.userSession);
if (TextUtils.isEmpty(i2)) {
i2 = Uri.parse(((BaseActivity) this).appGlobal.a.a().toString()).buildUpon().path("webview/static-agreement/CREDMEX_PRIVACY_POLICY").appendQueryParameter("isAgreementTemplate", String.valueOf(true)).build().toString();
}
jumpToWebPage(i2);
}
private void e0() {
ThirdPartTrackLib.d(this, ThirdPartTrackEvents.PersonalCenter.MEX_CENTER_BTN_SCORE);
if (TextUtils.isEmpty(this.userSession.f().appStoreUrl)) {
return;
}
new GeneralConfigManager(this).d(new GeneralConfigManager.FetchGeneralConfigListener() {
@Override
public void onSuccess(GeneralConfigResponse generalConfigResponse) {
if (AboutUsActivity.this.userSession.f().isEnableDisplayAppStore) {
?? r2 = AboutUsActivity.this;
AppUtil.d(r2, r2.userSession.f().appStoreUrl);
}
}
@Override
public void onError(GeneralConfigResponse generalConfigResponse) {
}
});
}
private void f0() {
String h2 = ProtocolInfoUtil.h(this.userSession);
if (TextUtils.isEmpty(h2)) {
this.D.c.setText(getString(2131821140));
} else {
this.D.c.setText(h2);
}
}
public static void startAboutUsActivity(Activity activity) {
activity.startActivity(new Intent(activity, (Class<?>) AboutUsActivity.class));
}
@Override
protected void K() {
super.K();
f0();
}
@Override
public View getContentView() {
ActivityAboutUsBinding c = ActivityAboutUsBinding.c(getLayoutInflater());
this.D = c;
return c.getRoot();
}
@Override
protected void onResume() {
super.onResume();
if (isLoggedIn()) {
this.D.d.setVisibility(0);
this.D.f.setVisibility(0);
} else {
this.D.d.setVisibility(8);
this.D.f.setVisibility(8);
}
this.D.e.setText("3.12.2");
}
@OnClick({2131362666, 2131362677, 2131362676})
public void onViewClicked(View view) {
if (BaseUtils.b()) {
}
switch (view.getId()) {
case 2131362666:
c0();
break;
case 2131362676:
d0();
break;
case 2131362677:
e0();
break;
}
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnCreated(@NonNull Runnable runnable) {
return com.veda.supertoolkit.lifecycle.i.a(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnDestroy(@NonNull Runnable runnable) {
return com.veda.supertoolkit.lifecycle.i.b(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnEvent(@NonNull LifecycleEvent lifecycleEvent, @Nullable Runnable runnable) {
return com.veda.supertoolkit.lifecycle.i.c(this, lifecycleEvent, runnable);
}
}