导航菜单

页面标题

页面副标题

CashVia v1.6.02 - C0667a.java 源代码

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

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


package v2;

import D2.C0058p;
import V2.G;
import android.app.Application;
import android.util.Log;
import androidx.activity.result.ActivityResult;
import androidx.activity.result.ActivityResultCallback;
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.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 g1.InterfaceC0463a;
import java.io.File;
import java.util.ArrayList;
import java.util.concurrent.CountDownLatch;
import kotlin.jvm.internal.Intrinsics;
import x1.C0701a;
import x1.z;
import z2.AbstractC0793h;

public final class C0667a implements SwipeRefreshLayout.OnRefreshListener, E2.d, k2.e, InterfaceC0463a, k2.d, ActivityResultCallback {

    public final int f8277a;

    public final Object f8278b;

    public C0667a(Object obj, int i4) {
        this.f8277a = i4;
        this.f8278b = obj;
    }

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

    @Override
    public void onActivityResult(Object obj) {
        ActivityResult activityResult = (ActivityResult) obj;
        switch (this.f8277a) {
            case 7:
                QuotaFragment this$0 = (QuotaFragment) this.f8278b;
                Intrinsics.checkNotNullParameter(this$0, "this$0");
                AbstractC0793h.a(this$0);
                break;
            case 8:
                RepaymentFragment this$02 = (RepaymentFragment) this.f8278b;
                Intrinsics.checkNotNullParameter(this$02, "this$0");
                if (activityResult.getResultCode() == -1) {
                    HomeViewModel g4 = this$02.g();
                    g4.getClass();
                    G.h(ViewModelKt.getViewModelScope(g4), null, new C0058p(g4, null), 3);
                    break;
                }
                break;
            default:
                UpQuotaFragment this$03 = (UpQuotaFragment) this.f8278b;
                Intrinsics.checkNotNullParameter(this$03, "this$0");
                AbstractC0793h.b(this$03);
                break;
        }
    }

    @Override
    public void onDismiss() {
        Object obj = this.f8278b;
        switch (this.f8277a) {
            case 2:
                int i4 = LoginActivity.f5173y;
                LoginActivity 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.f4663d) {
                    ((QuotaViewModel) this$02.f5237e.getValue()).f5513e.setValue(((HomeViewModel) this$02.f5238f.getValue()).f5465z.a());
                    break;
                }
                break;
        }
    }

    @Override
    public void onRefresh() {
        HomeFragment this$0 = (HomeFragment) this.f8278b;
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        this$0.d().f5452h.setValue(Boolean.TRUE);
        VersionViewModel.b((VersionViewModel) this$0.f5150w.getValue());
        BaseHomeFragment baseHomeFragment = this$0.f5152y;
        if (baseHomeFragment != null) {
            baseHomeFragment.d(false);
        }
    }
}