APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:CashEase
版本号:1.0.25
包名称:com.cash.ease.pro.money.cash

MD5 校验值:a7244a12b01ca73cc5005aefb001bf80

反编译源代码说明

ContactUsActivity.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package com.cash.ease.pro.money.cash.me;

import a.k;
import ai.haomo.lib.base.view.BaseActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import androidx.fragment.app.FragmentActivity;
import com.cash.ease.pro.money.cash.R;
import com.cash.ease.pro.money.cash.common.net.CommonRequester;
import com.cash.ease.pro.money.cash.databinding.ActivityContactUsBinding;
import com.cash.ease.pro.money.cash.me.viewmodel.PersonalCenterViewModel;
import kotlin.jvm.internal.g;
import r0.d;
import w0.q;
import w0.r;

public final class ContactUsActivity extends BaseActivity<PersonalCenterViewModel, ActivityContactUsBinding> {

    public static final int f2013u = 0;

    public static final class a {
        public static void a(FragmentActivity activity, String str) {
            g.f(activity, "activity");
            Intent intent = new Intent(activity, (Class<?>) ContactUsActivity.class);
            if (str != null) {
                intent.putExtra("params_phone", str);
            }
            activity.startActivity(intent);
        }
    }

    public final void back(View view) {
        CommonRequester.f1566a.d("14076", null);
        finish();
    }

    @Override
    public final void c() {
        String str;
        boolean z8;
        boolean z9 = false;
        ((PersonalCenterViewModel) this.f163c).f2042d.observe(this, new q(0, new r(this)));
        Intent intent = getIntent();
        if (intent != null) {
            str = intent.getStringExtra("params_phone");
        } else {
            str = null;
        }
        if (str != null && str.length() != 0) {
            z8 = false;
        } else {
            z8 = true;
        }
        if (!z8) {
            ((ActivityContactUsBinding) this.f164d).a(str);
            return;
        }
        String b2 = d.f5963a.b("key_contact_account", "+62 85217790100");
        if (b2 == null || b2.length() == 0) {
            z9 = true;
        }
        if (!z9) {
            ((ActivityContactUsBinding) this.f164d).a(b2);
        } else {
            ((PersonalCenterViewModel) this.f163c).a();
        }
    }

    public final void call(View view) {
        g.f(view, "view");
        try {
            try {
                Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("https://api.whatsapp.com/send?phone=" + ((ActivityContactUsBinding) this.f164d).f1623b));
                intent.setPackage("com.whatsapp");
                startActivity(intent);
                CommonRequester.f1566a.d("14077", null);
            } catch (Throwable unused) {
                k.p("Application not found!");
            }
        } catch (Exception unused2) {
            Intent intent2 = new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=com.whatsapp"));
            intent2.addFlags(268435456);
            startActivity(intent2);
        }
    }

    @Override
    public final int f() {
        return R.layout.activity_contact_us;
    }

    @Override
    public final void onCreate(Bundle bundle) {
        g();
        super.onCreate(bundle);
        CommonRequester.f1566a.d("14075", null);
    }
}