正在查看: moonshot.企业版 v5.53.33 应用的 C2651.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v5.53.33 应用的 C2651.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.rKwtQoMTg9U9BbR7dg96;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC1758;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC1793;
import TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.jnksI9k6J1HFuFo5YzBf.C2555;
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 java.util.ArrayList;
import java.util.Iterator;
public final class C2651 implements Iterable<Intent> {
private static final String f12168 = "TaskStackBuilder";
private final ArrayList<Intent> f12169 = new ArrayList<>();
private final Context f12170;
public interface InterfaceC2652 {
@InterfaceC1758
Intent getSupportParentActivityIntent();
}
private C2651(Context context) {
this.f12170 = context;
}
@InterfaceC1793
public static C2651 m10527(@InterfaceC1793 Context context) {
return new C2651(context);
}
@Deprecated
public static C2651 m10528(Context context) {
return m10527(context);
}
@Override
@Deprecated
public Iterator<Intent> iterator() {
return this.f12169.iterator();
}
public void m10529(@InterfaceC1758 Bundle bundle) {
if (this.f12169.isEmpty()) {
throw new IllegalStateException("No intents added to TaskStackBuilder; cannot startActivities");
}
ArrayList<Intent> arrayList = this.f12169;
Intent[] intentArr = (Intent[]) arrayList.toArray(new Intent[arrayList.size()]);
intentArr[0] = new Intent(intentArr[0]).addFlags(268484608);
if (C2555.m9957(this.f12170, intentArr, bundle)) {
return;
}
Intent intent = new Intent(intentArr[intentArr.length - 1]);
intent.addFlags(268435456);
this.f12170.startActivity(intent);
}
@InterfaceC1793
public C2651 m10530(@InterfaceC1793 Intent intent) {
ComponentName component = intent.getComponent();
if (component == null) {
component = intent.resolveActivity(this.f12170.getPackageManager());
}
if (component != null) {
m10541(component);
}
m10538(intent);
return this;
}
@InterfaceC1793
public C2651 m10531(@InterfaceC1793 Class<?> cls) {
return m10541(new ComponentName(this.f12170, cls));
}
@Deprecated
public Intent m10532(int i) {
return m10534(i);
}
@InterfaceC1758
public PendingIntent m10533(int i, int i2) {
return m10540(i, i2, null);
}
@InterfaceC1758
public Intent m10534(int i) {
return this.f12169.get(i);
}
public int m10535() {
return this.f12169.size();
}
@InterfaceC1793
public Intent[] m10536() {
int size = this.f12169.size();
Intent[] intentArr = new Intent[size];
if (size == 0) {
return intentArr;
}
intentArr[0] = new Intent(this.f12169.get(0)).addFlags(268484608);
for (int i = 1; i < size; i++) {
intentArr[i] = new Intent(this.f12169.get(i));
}
return intentArr;
}
@InterfaceC1793
public C2651 m10537(@InterfaceC1793 Activity activity) {
Intent supportParentActivityIntent = activity instanceof InterfaceC2652 ? ((InterfaceC2652) activity).getSupportParentActivityIntent() : null;
if (supportParentActivityIntent == null) {
supportParentActivityIntent = C2634.m10458(activity);
}
if (supportParentActivityIntent != null) {
ComponentName component = supportParentActivityIntent.getComponent();
if (component == null) {
component = supportParentActivityIntent.resolveActivity(this.f12170.getPackageManager());
}
m10541(component);
m10538(supportParentActivityIntent);
}
return this;
}
@InterfaceC1793
public C2651 m10538(@InterfaceC1793 Intent intent) {
this.f12169.add(intent);
return this;
}
public void m10539() {
m10529(null);
}
@InterfaceC1758
public PendingIntent m10540(int i, int i2, @InterfaceC1758 Bundle bundle) {
if (this.f12169.isEmpty()) {
throw new IllegalStateException("No intents added to TaskStackBuilder; cannot getPendingIntent");
}
ArrayList<Intent> arrayList = this.f12169;
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.f12170, i, intentArr, i2, bundle) : PendingIntent.getActivities(this.f12170, i, intentArr, i2);
}
public C2651 m10541(ComponentName componentName) {
int size = this.f12169.size();
try {
Intent m10452 = C2634.m10452(this.f12170, componentName);
while (m10452 != null) {
this.f12169.add(size, m10452);
m10452 = C2634.m10452(this.f12170, m10452.getComponent());
}
return this;
} catch (PackageManager.NameNotFoundException e) {
throw new IllegalArgumentException(e);
}
}
}