导航菜单

页面标题

页面副标题

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

正在查看: moonshot.企业版 v8.14.46 应用的 C1338.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.C1406;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2092;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2094;
import java.util.ArrayList;
import java.util.Iterator;

public final class C1338 implements Iterable<Intent> {

    private static final String f4807 = "TaskStackBuilder";

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

    private final Context f4809;

    public interface InterfaceC1339 {
        @InterfaceC2092
        Intent getSupportParentActivityIntent();
    }

    private C1338(Context context) {
        this.f4809 = context;
    }

    @InterfaceC2094
    public static C1338 m9503(@InterfaceC2094 Context context) {
        return new C1338(context);
    }

    @Deprecated
    public static C1338 m9504(Context context) {
        return m9503(context);
    }

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

    @Deprecated
    public Intent m9505(int i) {
        return m9506(i);
    }

    @InterfaceC2092
    public Intent m9506(int i) {
        return this.f4808.get(i);
    }

    public void m9507() {
        m9512(null);
    }

    @InterfaceC2094
    public C1338 m9508(@InterfaceC2094 Activity activity) {
        Intent supportParentActivityIntent = activity instanceof InterfaceC1339 ? ((InterfaceC1339) activity).getSupportParentActivityIntent() : null;
        if (supportParentActivityIntent == null) {
            supportParentActivityIntent = C1332.m9481(activity);
        }
        if (supportParentActivityIntent != null) {
            ComponentName component = supportParentActivityIntent.getComponent();
            if (component == null) {
                component = supportParentActivityIntent.resolveActivity(this.f4809.getPackageManager());
            }
            m9516(component);
            m9509(supportParentActivityIntent);
        }
        return this;
    }

    @InterfaceC2094
    public C1338 m9509(@InterfaceC2094 Intent intent) {
        this.f4808.add(intent);
        return this;
    }

    @InterfaceC2094
    public C1338 m9510(@InterfaceC2094 Class<?> cls) {
        return m9516(new ComponentName(this.f4809, cls));
    }

    @InterfaceC2092
    public PendingIntent m9511(int i, int i2, @InterfaceC2092 Bundle bundle) {
        if (this.f4808.isEmpty()) {
            throw new IllegalStateException("No intents added to TaskStackBuilder; cannot getPendingIntent");
        }
        ArrayList<Intent> arrayList = this.f4808;
        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.f4809, i, intentArr, i2, bundle) : PendingIntent.getActivities(this.f4809, i, intentArr, i2);
    }

    public void m9512(@InterfaceC2092 Bundle bundle) {
        if (this.f4808.isEmpty()) {
            throw new IllegalStateException("No intents added to TaskStackBuilder; cannot startActivities");
        }
        ArrayList<Intent> arrayList = this.f4808;
        Intent[] intentArr = (Intent[]) arrayList.toArray(new Intent[arrayList.size()]);
        intentArr[0] = new Intent(intentArr[0]).addFlags(268484608);
        if (C1406.m9780(this.f4809, intentArr, bundle)) {
            return;
        }
        Intent intent = new Intent(intentArr[intentArr.length - 1]);
        intent.addFlags(268435456);
        this.f4809.startActivity(intent);
    }

    public int m9513() {
        return this.f4808.size();
    }

    @InterfaceC2094
    public C1338 m9514(@InterfaceC2094 Intent intent) {
        ComponentName component = intent.getComponent();
        if (component == null) {
            component = intent.resolveActivity(this.f4809.getPackageManager());
        }
        if (component != null) {
            m9516(component);
        }
        m9509(intent);
        return this;
    }

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

    public C1338 m9516(ComponentName componentName) {
        int size = this.f4808.size();
        try {
            Intent m9485 = C1332.m9485(this.f4809, componentName);
            while (m9485 != null) {
                this.f4808.add(size, m9485);
                m9485 = C1332.m9485(this.f4809, m9485.getComponent());
            }
            return this;
        } catch (PackageManager.NameNotFoundException e) {
            throw new IllegalArgumentException(e);
        }
    }

    @InterfaceC2092
    public PendingIntent m9517(int i, int i2) {
        return m9511(i, i2, null);
    }
}