正在查看: moonshot.企业版 v5.53.33 应用的 C1158.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v5.53.33 应用的 C1158.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.rKwtQoMTg9U9BbR7dg96;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0265;
import TCUcMtElLJnqSvqb7YcU.TCUcMtElLJnqSvqb7YcU.InterfaceC0300;
import TCUcMtElLJnqSvqb7YcU.cr3JSOpoZIqsmhvmO4JX.jnksI9k6J1HFuFo5YzBf.C1062;
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 C1158 implements Iterable<Intent> {
private static final String f5682 = "TaskStackBuilder";
private final ArrayList<Intent> f5683 = new ArrayList<>();
private final Context f5684;
public interface InterfaceC1159 {
@InterfaceC0265
Intent getSupportParentActivityIntent();
}
private C1158(Context context) {
this.f5684 = context;
}
@InterfaceC0300
public static C1158 m4988(@InterfaceC0300 Context context) {
return new C1158(context);
}
@Deprecated
public static C1158 m4989(Context context) {
return m4988(context);
}
@Override
@Deprecated
public Iterator<Intent> iterator() {
return this.f5683.iterator();
}
public void m4990(@InterfaceC0265 Bundle bundle) {
if (this.f5683.isEmpty()) {
throw new IllegalStateException("No intents added to TaskStackBuilder; cannot startActivities");
}
ArrayList<Intent> arrayList = this.f5683;
Intent[] intentArr = (Intent[]) arrayList.toArray(new Intent[arrayList.size()]);
intentArr[0] = new Intent(intentArr[0]).addFlags(268484608);
if (C1062.m4418(this.f5684, intentArr, bundle)) {
return;
}
Intent intent = new Intent(intentArr[intentArr.length - 1]);
intent.addFlags(268435456);
this.f5684.startActivity(intent);
}
@InterfaceC0300
public C1158 m4991(@InterfaceC0300 Intent intent) {
ComponentName component = intent.getComponent();
if (component == null) {
component = intent.resolveActivity(this.f5684.getPackageManager());
}
if (component != null) {
m5002(component);
}
m4999(intent);
return this;
}
@InterfaceC0300
public C1158 m4992(@InterfaceC0300 Class<?> cls) {
return m5002(new ComponentName(this.f5684, cls));
}
@Deprecated
public Intent m4993(int i) {
return m4995(i);
}
@InterfaceC0265
public PendingIntent m4994(int i, int i2) {
return m5001(i, i2, null);
}
@InterfaceC0265
public Intent m4995(int i) {
return this.f5683.get(i);
}
public int m4996() {
return this.f5683.size();
}
@InterfaceC0300
public Intent[] m4997() {
int size = this.f5683.size();
Intent[] intentArr = new Intent[size];
if (size == 0) {
return intentArr;
}
intentArr[0] = new Intent(this.f5683.get(0)).addFlags(268484608);
for (int i = 1; i < size; i++) {
intentArr[i] = new Intent(this.f5683.get(i));
}
return intentArr;
}
@InterfaceC0300
public C1158 m4998(@InterfaceC0300 Activity activity) {
Intent supportParentActivityIntent = activity instanceof InterfaceC1159 ? ((InterfaceC1159) activity).getSupportParentActivityIntent() : null;
if (supportParentActivityIntent == null) {
supportParentActivityIntent = C1141.m4919(activity);
}
if (supportParentActivityIntent != null) {
ComponentName component = supportParentActivityIntent.getComponent();
if (component == null) {
component = supportParentActivityIntent.resolveActivity(this.f5684.getPackageManager());
}
m5002(component);
m4999(supportParentActivityIntent);
}
return this;
}
@InterfaceC0300
public C1158 m4999(@InterfaceC0300 Intent intent) {
this.f5683.add(intent);
return this;
}
public void m5000() {
m4990(null);
}
@InterfaceC0265
public PendingIntent m5001(int i, int i2, @InterfaceC0265 Bundle bundle) {
if (this.f5683.isEmpty()) {
throw new IllegalStateException("No intents added to TaskStackBuilder; cannot getPendingIntent");
}
ArrayList<Intent> arrayList = this.f5683;
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.f5684, i, intentArr, i2, bundle) : PendingIntent.getActivities(this.f5684, i, intentArr, i2);
}
public C1158 m5002(ComponentName componentName) {
int size = this.f5683.size();
try {
Intent m4913 = C1141.m4913(this.f5684, componentName);
while (m4913 != null) {
this.f5683.add(size, m4913);
m4913 = C1141.m4913(this.f5684, m4913.getComponent());
}
return this;
} catch (PackageManager.NameNotFoundException e) {
throw new IllegalArgumentException(e);
}
}
}