导航菜单

页面标题

页面副标题

远离手机 v4.9.11 - IlIlIllI.java 源代码

正在查看: 远离手机 v4.9.11 应用的 IlIlIllI.java JAVA 源代码文件

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


package com.lijianqiang12.silent;

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.Bundle;
import android.util.Log;
import java.util.ArrayList;
import java.util.Iterator;

public final class IlIlIllI implements Iterable<Intent> {
    private static final String l11l1l11I1 = "TaskStackBuilder";
    private final Context I1II1ll1lI1;
    private final ArrayList<Intent> Il11lIlllll1 = new ArrayList<>();

    public interface IIllIl1llII {
        @II1lll1lIlIl1
        Intent getSupportParentActivityIntent();
    }

    private IlIlIllI(Context context) {
        this.I1II1ll1lI1 = context;
    }

    @Deprecated
    public static IlIlIllI Ill1llIIlIlll(Context context) {
        return lII1lI1Illl(context);
    }

    @IlI1111llI11I
    public static IlIlIllI lII1lI1Illl(@IlI1111llI11I Context context) {
        return new IlIlIllI(context);
    }

    public int I1Il11llllIl() {
        return this.Il11lIlllll1.size();
    }

    public void III11IIll1lI1() {
        IIl1I11I1lI1l(null);
    }

    public void IIl1I11I1lI1l(@II1lll1lIlIl1 Bundle bundle) {
        if (this.Il11lIlllll1.isEmpty()) {
            throw new IllegalStateException("No intents added to TaskStackBuilder; cannot startActivities");
        }
        Intent[] intentArr = (Intent[]) this.Il11lIlllll1.toArray(new Intent[0]);
        intentArr[0] = new Intent(intentArr[0]).addFlags(268484608);
        if (lI1Il1II1l1.llll1IlllIl1(this.I1II1ll1lI1, intentArr, bundle)) {
            return;
        }
        Intent intent = new Intent(intentArr[intentArr.length - 1]);
        intent.addFlags(268435456);
        this.I1II1ll1lI1.startActivity(intent);
    }

    @Deprecated
    public Intent IIll11IllI1l(int i) {
        return lI111l1I1llIl(i);
    }

    @IlI1111llI11I
    public IlIlIllI Il11lI1III1(@IlI1111llI11I Intent intent) {
        ComponentName component = intent.getComponent();
        if (component == null) {
            component = intent.resolveActivity(this.I1II1ll1lI1.getPackageManager());
        }
        if (component != null) {
            Il1IlII1(component);
        }
        IlllIll1I1I(intent);
        return this;
    }

    @IlI1111llI11I
    public IlIlIllI Il1IlII1(@IlI1111llI11I ComponentName componentName) {
        int size = this.Il11lIlllll1.size();
        try {
            Intent IlllIll1I1I = IIlIlll11Il1.IlllIll1I1I(this.I1II1ll1lI1, componentName);
            while (IlllIll1I1I != null) {
                this.Il11lIlllll1.add(size, IlllIll1I1I);
                IlllIll1I1I = IIlIlll11Il1.IlllIll1I1I(this.I1II1ll1lI1, IlllIll1I1I.getComponent());
            }
            return this;
        } catch (PackageManager.NameNotFoundException e) {
            Log.e(l11l1l11I1, "Bad ComponentName while traversing activity parent metadata");
            throw new IllegalArgumentException(e);
        }
    }

    @II1lll1lIlIl1
    public PendingIntent IllIlI1l1I(int i, int i2) {
        return l1llllI11l111(i, i2, null);
    }

    @IlI1111llI11I
    public IlIlIllI IlllIll1I1I(@IlI1111llI11I Intent intent) {
        this.Il11lIlllll1.add(intent);
        return this;
    }

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

    @II1lll1lIlIl1
    public PendingIntent l1llllI11l111(int i, int i2, @II1lll1lIlIl1 Bundle bundle) {
        if (this.Il11lIlllll1.isEmpty()) {
            throw new IllegalStateException("No intents added to TaskStackBuilder; cannot getPendingIntent");
        }
        Intent[] intentArr = (Intent[]) this.Il11lIlllll1.toArray(new Intent[0]);
        intentArr[0] = new Intent(intentArr[0]).addFlags(268484608);
        return PendingIntent.getActivities(this.I1II1ll1lI1, i, intentArr, i2, bundle);
    }

    @IlI1111llI11I
    public IlIlIllI lI11111lI1(@IlI1111llI11I Class<?> cls) {
        return Il1IlII1(new ComponentName(this.I1II1ll1lI1, cls));
    }

    @II1lll1lIlIl1
    public Intent lI111l1I1llIl(int i) {
        return this.Il11lIlllll1.get(i);
    }

    @IlI1111llI11I
    public IlIlIllI lIIl1I1I(@IlI1111llI11I Activity activity) {
        Intent supportParentActivityIntent = activity instanceof IIllIl1llII ? ((IIllIl1llII) activity).getSupportParentActivityIntent() : null;
        if (supportParentActivityIntent == null) {
            supportParentActivityIntent = IIlIlll11Il1.IIllIl1llII(activity);
        }
        if (supportParentActivityIntent != null) {
            ComponentName component = supportParentActivityIntent.getComponent();
            if (component == null) {
                component = supportParentActivityIntent.resolveActivity(this.I1II1ll1lI1.getPackageManager());
            }
            Il1IlII1(component);
            IlllIll1I1I(supportParentActivityIntent);
        }
        return this;
    }

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