导航菜单

页面标题

页面副标题

moonshot.企业版 v8.14.46 - C3643.java 源代码

正在查看: moonshot.企业版 v8.14.46 应用的 C3643.java JAVA 源代码文件

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


package c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.hX79Ew6mJdJrSjlkdwnl;

import android.app.Activity;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.kp1AiJpjqJHu1Tcnj96z.C3711;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4397;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC4399;
import java.util.ArrayList;
import java.util.Iterator;

public final class C3643 implements Iterable<Intent> {

    private static final String f12468 = "TaskStackBuilder";

    private final ArrayList<Intent> f12469 = new ArrayList<>();

    private final Context f12470;

    public interface InterfaceC3644 {
        @InterfaceC4397
        Intent getSupportParentActivityIntent();
    }

    private C3643(Context context) {
        this.f12470 = context;
    }

    @InterfaceC4399
    public static C3643 m17496(@InterfaceC4399 Context context) {
        return new C3643(context);
    }

    @Deprecated
    public static C3643 m17497(Context context) {
        return m17496(context);
    }

    @Override
    @Deprecated
    public Iterator<Intent> iterator() {
        return this.f12469.iterator();
    }

    @Deprecated
    public Intent m17498(int i) {
        return m17499(i);
    }

    @InterfaceC4397
    public Intent m17499(int i) {
        return this.f12469.get(i);
    }

    public void m17500() {
        m17505(null);
    }

    @InterfaceC4399
    public C3643 m17501(@InterfaceC4399 Activity activity) {
        Intent supportParentActivityIntent = activity instanceof InterfaceC3644 ? ((InterfaceC3644) activity).getSupportParentActivityIntent() : null;
        if (supportParentActivityIntent == null) {
            supportParentActivityIntent = C3637.m17474(activity);
        }
        if (supportParentActivityIntent != null) {
            ComponentName component = supportParentActivityIntent.getComponent();
            if (component == null) {
                component = supportParentActivityIntent.resolveActivity(this.f12470.getPackageManager());
            }
            m17509(component);
            m17502(supportParentActivityIntent);
        }
        return this;
    }

    @InterfaceC4399
    public C3643 m17502(@InterfaceC4399 Intent intent) {
        this.f12469.add(intent);
        return this;
    }

    @InterfaceC4399
    public C3643 m17503(@InterfaceC4399 Class<?> cls) {
        return m17509(new ComponentName(this.f12470, cls));
    }

    @InterfaceC4397
    public PendingIntent m17504(int i, int i2, @InterfaceC4397 Bundle bundle) {
        if (this.f12469.isEmpty()) {
            throw new IllegalStateException("No intents added to TaskStackBuilder; cannot getPendingIntent");
        }
        ArrayList<Intent> arrayList = this.f12469;
        Intent[] intentArr = (Intent[]) arrayList.toArray(new Intent[arrayList.size()]);
        intentArr[0] = new Intent(intentArr[0]).addFlags(268484608);
        return Build.VERSION.SDK_INT >= 16 ? PendingIntent.getActivities(this.f12470, i, intentArr, i2, bundle) : PendingIntent.getActivities(this.f12470, i, intentArr, i2);
    }

    public void m17505(@InterfaceC4397 Bundle bundle) {
        if (this.f12469.isEmpty()) {
            throw new IllegalStateException("No intents added to TaskStackBuilder; cannot startActivities");
        }
        ArrayList<Intent> arrayList = this.f12469;
        Intent[] intentArr = (Intent[]) arrayList.toArray(new Intent[arrayList.size()]);
        intentArr[0] = new Intent(intentArr[0]).addFlags(268484608);
        if (C3711.m17773(this.f12470, intentArr, bundle)) {
            return;
        }
        Intent intent = new Intent(intentArr[intentArr.length - 1]);
        intent.addFlags(268435456);
        this.f12470.startActivity(intent);
    }

    public int m17506() {
        return this.f12469.size();
    }

    @InterfaceC4399
    public C3643 m17507(@InterfaceC4399 Intent intent) {
        ComponentName component = intent.getComponent();
        if (component == null) {
            component = intent.resolveActivity(this.f12470.getPackageManager());
        }
        if (component != null) {
            m17509(component);
        }
        m17502(intent);
        return this;
    }

    @InterfaceC4399
    public Intent[] m17508() {
        int size = this.f12469.size();
        Intent[] intentArr = new Intent[size];
        if (size == 0) {
            return intentArr;
        }
        intentArr[0] = new Intent(this.f12469.get(0)).addFlags(268484608);
        for (int i = 1; i < size; i++) {
            intentArr[i] = new Intent(this.f12469.get(i));
        }
        return intentArr;
    }

    public C3643 m17509(ComponentName componentName) {
        int size = this.f12469.size();
        try {
            Intent m17478 = C3637.m17478(this.f12470, componentName);
            while (m17478 != null) {
                this.f12469.add(size, m17478);
                m17478 = C3637.m17478(this.f12470, m17478.getComponent());
            }
            return this;
        } catch (PackageManager.NameNotFoundException e) {
            throw new IllegalArgumentException(e);
        }
    }

    @InterfaceC4397
    public PendingIntent m17510(int i, int i2) {
        return m17504(i, i2, null);
    }
}