159 lines
4.5 KiB
Java
159 lines
4.5 KiB
Java
|
package androidx.core.app;
|
||
|
|
||
|
import android.app.Activity;
|
||
|
import android.content.Context;
|
||
|
import android.os.Build;
|
||
|
import android.os.Bundle;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.View;
|
||
|
import androidx.lifecycle.ReportFragment;
|
||
|
import o.C17488xFm;
|
||
|
import o.DFj;
|
||
|
import o.InterfaceC16541pFg;
|
||
|
import o.LPk;
|
||
|
import o.Rut;
|
||
|
import o.wdQ;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class ComponentActivity extends Activity implements InterfaceC16541pFg, Rut.Sts {
|
||
|
private DFj<Class<? extends Sts>, Sts> mExtraDataMap = new DFj<>();
|
||
|
private LPk mLifecycleRegistry = new LPk(this);
|
||
|
|
||
|
@Deprecated
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class Sts {
|
||
|
}
|
||
|
|
||
|
public wdQ getLifecycle() {
|
||
|
return this.mLifecycleRegistry;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
@Deprecated
|
||
|
public void putExtraData(Sts sts) {
|
||
|
this.mExtraDataMap.put(sts.getClass(), sts);
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void onCreate(Bundle bundle) {
|
||
|
super.onCreate(bundle);
|
||
|
ReportFragment.zv_(this);
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void onSaveInstanceState(Bundle bundle) {
|
||
|
this.mLifecycleRegistry.a(wdQ.IeS.CREATED);
|
||
|
super.onSaveInstanceState(bundle);
|
||
|
}
|
||
|
|
||
|
@Deprecated
|
||
|
public <T extends Sts> T getExtraData(Class<T> cls) {
|
||
|
return (T) this.mExtraDataMap.get(cls);
|
||
|
}
|
||
|
|
||
|
@Override // o.Rut.Sts
|
||
|
public boolean superDispatchKeyEvent(KeyEvent keyEvent) {
|
||
|
return super.dispatchKeyEvent(keyEvent);
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity, android.view.Window.Callback
|
||
|
public boolean dispatchKeyShortcutEvent(KeyEvent keyEvent) {
|
||
|
View decorView = getWindow().getDecorView();
|
||
|
if (decorView == null || !Rut.rt_(decorView, keyEvent)) {
|
||
|
return super.dispatchKeyShortcutEvent(keyEvent);
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity, android.view.Window.Callback
|
||
|
public boolean dispatchKeyEvent(KeyEvent keyEvent) {
|
||
|
View decorView = getWindow().getDecorView();
|
||
|
if (decorView == null || !Rut.rt_(decorView, keyEvent)) {
|
||
|
return Rut.ru_(this, decorView, this, keyEvent);
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final boolean shouldDumpInternalState(String[] strArr) {
|
||
|
return !shouldSkipDump(strArr);
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
|
||
|
private static boolean shouldSkipDump(String[] strArr) {
|
||
|
char c;
|
||
|
if (strArr == null || strArr.length <= 0) {
|
||
|
return false;
|
||
|
}
|
||
|
String str = strArr[0];
|
||
|
str.hashCode();
|
||
|
switch (str.hashCode()) {
|
||
|
case -645125871:
|
||
|
if (str.equals("--translation")) {
|
||
|
c = 0;
|
||
|
break;
|
||
|
}
|
||
|
c = 65535;
|
||
|
break;
|
||
|
case 100470631:
|
||
|
if (str.equals("--dump-dumpable")) {
|
||
|
c = 1;
|
||
|
break;
|
||
|
}
|
||
|
c = 65535;
|
||
|
break;
|
||
|
case 472614934:
|
||
|
if (str.equals("--list-dumpables")) {
|
||
|
c = 2;
|
||
|
break;
|
||
|
}
|
||
|
c = 65535;
|
||
|
break;
|
||
|
case 1159329357:
|
||
|
if (str.equals("--contentcapture")) {
|
||
|
c = 3;
|
||
|
break;
|
||
|
}
|
||
|
c = 65535;
|
||
|
break;
|
||
|
case 1455016274:
|
||
|
if (str.equals("--autofill")) {
|
||
|
c = 4;
|
||
|
break;
|
||
|
}
|
||
|
c = 65535;
|
||
|
break;
|
||
|
default:
|
||
|
c = 65535;
|
||
|
break;
|
||
|
}
|
||
|
if (c == 0) {
|
||
|
return Build.VERSION.SDK_INT >= 31;
|
||
|
}
|
||
|
if (c == 1 || c == 2) {
|
||
|
return C17488xFm.c();
|
||
|
}
|
||
|
return c != 3 ? c == 4 : Build.VERSION.SDK_INT >= 29;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
|
||
|
public void attachBaseContext(Context context) {
|
||
|
super.attachBaseContext(context);
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void onPause() {
|
||
|
super.onPause();
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void onResume() {
|
||
|
super.onResume();
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void onStart() {
|
||
|
super.onStart();
|
||
|
}
|
||
|
}
|