正在查看: All File Recovery v1.0.2 应用的 c0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: All File Recovery v1.0.2 应用的 c0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package j0;
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;
import l0.C1380e;
public final class c0 implements Iterable<Intent> {
public static final String f27006c = "TaskStackBuilder";
public final ArrayList<Intent> f27007a = new ArrayList<>();
public final Context f27008b;
public interface a {
Intent e();
}
public c0(Context context) {
this.f27008b = context;
}
public static c0 f(Context context) {
return new c0(context);
}
@Deprecated
public static c0 h(Context context) {
return new c0(context);
}
public c0 a(Intent intent) {
this.f27007a.add(intent);
return this;
}
public c0 b(Intent intent) {
ComponentName component = intent.getComponent();
if (component == null) {
component = intent.resolveActivity(this.f27008b.getPackageManager());
}
if (component != null) {
d(component);
}
a(intent);
return this;
}
public c0 c(Activity activity) {
Intent e4 = activity instanceof a ? ((a) activity).e() : null;
if (e4 == null) {
e4 = C1266F.a(activity);
}
if (e4 != null) {
ComponentName component = e4.getComponent();
if (component == null) {
component = e4.resolveActivity(this.f27008b.getPackageManager());
}
d(component);
a(e4);
}
return this;
}
public c0 d(ComponentName componentName) {
int size = this.f27007a.size();
try {
Intent b4 = C1266F.b(this.f27008b, componentName);
while (b4 != null) {
this.f27007a.add(size, b4);
b4 = C1266F.b(this.f27008b, b4.getComponent());
}
return this;
} catch (PackageManager.NameNotFoundException e4) {
Log.e(f27006c, "Bad ComponentName while traversing activity parent metadata");
throw new IllegalArgumentException(e4);
}
}
public c0 e(Class<?> cls) {
d(new ComponentName(this.f27008b, cls));
return this;
}
public Intent g(int i4) {
return this.f27007a.get(i4);
}
@Deprecated
public Intent i(int i4) {
return g(i4);
}
@Override
@Deprecated
public Iterator<Intent> iterator() {
return this.f27007a.iterator();
}
public int j() {
return this.f27007a.size();
}
public Intent[] l() {
int size = this.f27007a.size();
Intent[] intentArr = new Intent[size];
if (size != 0) {
intentArr[0] = new Intent(this.f27007a.get(0)).addFlags(268484608);
for (int i4 = 1; i4 < size; i4++) {
intentArr[i4] = new Intent(this.f27007a.get(i4));
}
}
return intentArr;
}
public PendingIntent m(int i4, int i5) {
return n(i4, i5, null);
}
public PendingIntent n(int i4, int i5, Bundle bundle) {
if (this.f27007a.isEmpty()) {
throw new IllegalStateException("No intents added to TaskStackBuilder; cannot getPendingIntent");
}
Intent[] intentArr = (Intent[]) this.f27007a.toArray(new Intent[0]);
intentArr[0] = new Intent(intentArr[0]).addFlags(268484608);
return PendingIntent.getActivities(this.f27008b, i4, intentArr, i5, bundle);
}
public PendingIntent o(int i4, int i5, Bundle bundle, boolean z3) {
return n(i4, C1281V.a(z3, i5), bundle);
}
public PendingIntent p(int i4, int i5, boolean z3) {
return n(i4, C1281V.a(z3, i5), null);
}
public void q() {
t(null);
}
public void t(Bundle bundle) {
if (this.f27007a.isEmpty()) {
throw new IllegalStateException("No intents added to TaskStackBuilder; cannot startActivities");
}
Intent[] intentArr = (Intent[]) this.f27007a.toArray(new Intent[0]);
intentArr[0] = new Intent(intentArr[0]).addFlags(268484608);
if (C1380e.startActivities(this.f27008b, intentArr, bundle)) {
return;
}
Intent intent = new Intent(intentArr[intentArr.length - 1]);
intent.addFlags(268435456);
this.f27008b.startActivity(intent);
}
}