导航菜单

页面标题

页面副标题

CashVia v1.6.02 - C0286a.java 源代码

正在查看: CashVia v1.6.02 应用的 C0286a.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package v2;

import D2.C0043p;
import V2.G;
import android.app.Application;
import android.util.Log;
import androidx.activity.result.ActivityResult;
import androidx.activity.result.ActivityResultCallback;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.ViewModelKt;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import com.sensorsdata.analytics.android.sdk.SAConfigOptions;
import com.sensorsdata.analytics.android.sdk.SensorsDataAPI;
import com.sensorsdata.analytics.android.sdk.data.SAProviderHelper;
import com.xy.credyclub.MineApp;
import com.xy.credyclub.view.HomeFragment;
import com.xy.credyclub.view.account.LoginActivity;
import com.xy.credyclub.view.home.BaseHomeFragment;
import com.xy.credyclub.view.home.QuotaAFragment;
import com.xy.credyclub.view.home.QuotaFragment;
import com.xy.credyclub.view.home.RepaymentFragment;
import com.xy.credyclub.view.home.UpQuotaFragment;
import com.xy.credyclub.vm.HomeViewModel;
import com.xy.credyclub.vm.QuotaViewModel;
import com.xy.credyclub.vm.VersionViewModel;
import java.io.File;
import java.util.ArrayList;
import java.util.concurrent.CountDownLatch;
import kotlin.jvm.internal.Intrinsics;
import x1.C0310a;
import x1.z;
import z2.AbstractC0394h;

public final class C0286a implements SwipeRefreshLayout.OnRefreshListener, E2.d, k2.e, g1.a, k2.d, ActivityResultCallback {
    public final int a;
    public final Object b;

    public C0286a(Object obj, int i) {
        this.a = i;
        this.b = obj;
    }

    public Object h(g1.h hVar) {
        boolean z;
        switch (this.a) {
            case 4:
                ((z) this.b).getClass();
                if (hVar.j()) {
                    C0310a c0310a = (C0310a) hVar.g();
                    u1.b bVar = u1.b.a;
                    bVar.c("Crashlytics report successfully enqueued to DataTransport: " + c0310a.b);
                    File file = c0310a.c;
                    if (file.delete()) {
                        bVar.c("Deleted report file: " + file.getPath());
                    } else {
                        bVar.g("Crashlytics could not delete report file: " + file.getPath(), null);
                    }
                    z = true;
                } else {
                    Log.w("FirebaseCrashlytics", "Crashlytics report could not be enqueued to DataTransport", hVar.f());
                    z = false;
                }
                return Boolean.valueOf(z);
            default:
                ((CountDownLatch) this.b).countDown();
                return null;
        }
    }

    public void onActivityResult(Object obj) {
        ActivityResult activityResult = (ActivityResult) obj;
        switch (this.a) {
            case SAProviderHelper.URI_CODE.LOGIN_ID:
                QuotaFragment this$0 = (QuotaFragment) this.b;
                Intrinsics.checkNotNullParameter(this$0, "this$0");
                AbstractC0394h.a(this$0);
                break;
            case 8:
                RepaymentFragment this$02 = (RepaymentFragment) this.b;
                Intrinsics.checkNotNullParameter(this$02, "this$0");
                if (activityResult.getResultCode() == -1) {
                    HomeViewModel g = this$02.g();
                    g.getClass();
                    G.h(ViewModelKt.getViewModelScope(g), null, new C0043p(g, null), 3);
                    break;
                }
                break;
            default:
                UpQuotaFragment this$03 = (UpQuotaFragment) this.b;
                Intrinsics.checkNotNullParameter(this$03, "this$0");
                AbstractC0394h.b(this$03);
                break;
        }
    }

    @Override
    public void onDismiss() {
        Object obj = this.b;
        switch (this.a) {
            case 2:
                int i = LoginActivity.y;
                AppCompatActivity this$0 = (LoginActivity) obj;
                Intrinsics.checkNotNullParameter(this$0, "this$0");
                if (!(this$0.getApplication() instanceof MineApp)) {
                    SAConfigOptions sAConfigOptions = new SAConfigOptions("https://tracker.cashvia.mx/sa?project=production");
                    sAConfigOptions.enableTrackAppCrash();
                    SensorsDataAPI.startWithConfigOptions(this$0, sAConfigOptions);
                    ArrayList arrayList = new ArrayList();
                    arrayList.add(SensorsDataAPI.AutoTrackEventType.APP_START);
                    arrayList.add(SensorsDataAPI.AutoTrackEventType.APP_END);
                    arrayList.add(SensorsDataAPI.AutoTrackEventType.APP_VIEW_SCREEN);
                    arrayList.add(SensorsDataAPI.AutoTrackEventType.APP_CLICK);
                    SensorsDataAPI.sharedInstance().enableAutoTrack(arrayList);
                    SensorsDataAPI.sharedInstance().trackFragmentAppViewScreen();
                    break;
                } else {
                    Application application = this$0.getApplication();
                    Intrinsics.checkNotNull(application, "null cannot be cast to non-null type com.xy.credyclub.MineApp");
                    ((MineApp) application).c();
                    break;
                }
            default:
                QuotaAFragment this$02 = (QuotaAFragment) obj;
                Intrinsics.checkNotNullParameter(this$02, "this$0");
                if (this$02.d) {
                    ((QuotaViewModel) this$02.e.getValue()).e.setValue(((HomeViewModel) this$02.f.getValue()).z.a());
                    break;
                }
                break;
        }
    }

    public void onRefresh() {
        HomeFragment this$0 = (HomeFragment) this.b;
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        this$0.d().h.setValue(Boolean.TRUE);
        VersionViewModel.b((VersionViewModel) this$0.w.getValue());
        BaseHomeFragment baseHomeFragment = this$0.y;
        if (baseHomeFragment != null) {
            baseHomeFragment.d(false);
        }
    }
}