package androidx.appcompat.app; import android.R; import android.app.Activity; import android.app.Dialog; import android.app.UiModeManager; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.ContextWrapper; import android.content.Intent; import android.content.IntentFilter; import android.content.pm.ActivityInfo; import android.content.pm.PackageManager; import android.content.res.Configuration; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.location.LocationManager; import android.os.Build; import android.os.Bundle; import android.os.LocaleList; import android.os.PowerManager; import android.text.TextUtils; import android.util.AndroidRuntimeException; import android.util.AttributeSet; import android.util.TypedValue; import android.view.ActionMode; import android.view.ContextThemeWrapper; import android.view.KeyCharacterMap; import android.view.KeyEvent; import android.view.KeyboardShortcutGroup; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.view.ViewGroup; import android.view.ViewParent; import android.view.Window; import android.view.WindowManager; import android.widget.FrameLayout; import android.widget.ListAdapter; import android.widget.PopupWindow; import android.widget.TextView; import android.window.OnBackInvokedCallback; import android.window.OnBackInvokedDispatcher; import androidx.appcompat.app.AppCompatDelegateImpl; import androidx.appcompat.view.menu.ExpandedMenuView; import androidx.appcompat.widget.ActionBarContextView; import androidx.appcompat.widget.ContentFrameLayout; import androidx.appcompat.widget.Toolbar; import androidx.core.view.ViewCompat; import androidx.core.view.ViewPropertyAnimatorCompat; import androidx.core.view.WindowInsetsCompat; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.ref.WeakReference; import java.util.LinkedHashSet; import java.util.List; import java.util.Locale; import java.util.Objects; import o.AgY; import o.BWq; import o.C0683McA; import o.C0990TdL; import o.C15973jzh; import o.C1982aTx; import o.DFj; import o.InterfaceC15687hkl; import o.InterfaceC15933jjG; import o.InterfaceC16541pFg; import o.JHJ; import o.JRt; import o.LbT; import o.NOK; import o.NoP; import o.PBh; import o.PEg; import o.Plu; import o.QUF; import o.RXZ; import o.Rut; import o.SYO; import o.Sya; import o.WNf; import o.XOs; import o.Yju; import o.jdi; import o.kVs; import o.mhG; import o.mxt; import o.nMh; import o.pwE; import o.qPj; import o.uLO; import o.vsf; import o.wcf; import o.wdQ; /* loaded from: classes.dex */ public class AppCompatDelegateImpl extends Yju implements NoP.Sts, LayoutInflater.Factory2 { private RVV B; private NOK C; private int D; private NHB E; private OnBackInvokedCallback F; private tOB G; private boolean H; private NHB I; private jdi J; private boolean K; private OnBackInvokedDispatcher L; private boolean M; private Configuration N; private boolean O; private boolean P; private boolean Q; private final Runnable R; private boolean S; private mxa T; private int U; private vUG[] V; private C15973jzh W; private boolean X; private Rect Y; private vUG Z; private Rect aa; private View ab; private boolean ac; private TextView ae; private int af; private CharSequence ah; PopupWindow b; pwE c; vsf d; ActionBarContextView e; final Context f; boolean g; boolean h; ViewPropertyAnimatorCompat i; final qPj j; boolean k; final Object l; boolean m; int n; /* renamed from: o, reason: collision with root package name */ MenuInflater f6367o; Window p; boolean q; ViewGroup r; boolean s; Runnable t; boolean x; private boolean z; private static final DFj v = new DFj<>(); private static final boolean w = false; private static final int[] A = {R.attr.windowBackground}; private static final boolean u = !"robolectric".equals(Build.FINGERPRINT); private static final boolean y = true; /* loaded from: classes.dex */ public interface Sts { View c(int i); boolean d(int i); } private int g(int i) { if (i == 8) { return 108; } if (i == 9) { return 109; } return i; } @Override // o.Yju public void cI_(Bundle bundle) { } void cJ_(ViewGroup viewGroup) { } public AppCompatDelegateImpl(Activity activity, qPj qpj) { this(activity, null, qpj, activity); } public AppCompatDelegateImpl(Dialog dialog, qPj qpj) { this(dialog.getContext(), dialog.getWindow(), qpj, dialog); } private AppCompatDelegateImpl(Context context, Window window, qPj qpj, Object obj) { DFj dFj; Integer num; AppCompatActivity L; this.i = null; this.P = true; this.U = -100; this.R = new Runnable(this) { // from class: androidx.appcompat.app.AppCompatDelegateImpl.1 final AppCompatDelegateImpl c; { this.c = this; } @Override // java.lang.Runnable public void run() { if ((this.c.n & 1) != 0) { this.c.h(0); } if ((this.c.n & 4096) != 0) { this.c.h(108); } this.c.m = false; this.c.n = 0; } }; this.f = context; this.j = qpj; this.l = obj; if (this.U == -100 && (obj instanceof Dialog) && (L = L()) != null) { this.U = L.getDelegate().f(); } if (this.U == -100 && (num = (dFj = v).get(obj.getClass().getName())) != null) { this.U = num.intValue(); dFj.remove(obj.getClass().getName()); } if (window != null) { ch_(window); } RXZ.a(); } @Override // o.Yju public void cM_(OnBackInvokedDispatcher onBackInvokedDispatcher) { OnBackInvokedCallback onBackInvokedCallback; super.cM_(onBackInvokedDispatcher); OnBackInvokedDispatcher onBackInvokedDispatcher2 = this.L; if (onBackInvokedDispatcher2 != null && (onBackInvokedCallback = this.F) != null) { jbe.c(onBackInvokedDispatcher2, onBackInvokedCallback); this.F = null; } if (onBackInvokedDispatcher == null) { Object obj = this.l; if ((obj instanceof Activity) && ((Activity) obj).getWindow() != null) { onBackInvokedDispatcher = jbe.cY_((Activity) this.l); } } this.L = onBackInvokedDispatcher; D(); } void D() { OnBackInvokedCallback onBackInvokedCallback; if (Build.VERSION.SDK_INT >= 33) { boolean z = z(); if (z && this.F == null) { this.F = jbe.cZ_(this.L, this); } else { if (z || (onBackInvokedCallback = this.F) == null) { return; } jbe.c(this.L, onBackInvokedCallback); } } } @Override // o.Yju public Context g(Context context) { this.H = true; int a = a(context, I()); if (b(context)) { d(context); } Plu i = i(context); if (y && (context instanceof ContextThemeWrapper)) { try { jNh.dh_((ContextThemeWrapper) context, ci_(context, a, i, null, false)); return context; } catch (IllegalStateException unused) { } } if (context instanceof mhG) { try { ((mhG) context).eb_(ci_(context, a, i, null, false)); return context; } catch (IllegalStateException unused2) { } } if (!u) { return super.g(context); } Configuration configuration = new Configuration(); configuration.uiMode = -1; configuration.fontScale = BitmapDescriptorFactory.HUE_RED; Configuration configuration2 = LWm.cR_(context, configuration).getResources().getConfiguration(); Configuration configuration3 = context.getResources().getConfiguration(); configuration2.uiMode = configuration3.uiMode; Configuration ci_ = ci_(context, a, i, !configuration2.equals(configuration3) ? ck_(configuration2, configuration3) : null, true); mhG mhg = new mhG(context, SYO.jbe.Theme_AppCompat_Empty); mhg.eb_(ci_); try { if (context.getTheme() != null) { kVs.ZqN.os_(mhg.getTheme()); } } catch (NullPointerException unused3) { } return super.g(mhg); } /* loaded from: classes.dex */ static class jNh { static void dh_(ContextThemeWrapper contextThemeWrapper, Configuration configuration) { contextThemeWrapper.applyOverrideConfiguration(configuration); } } @Override // o.Yju public void cC_(Bundle bundle) { String str; this.H = true; e(false); H(); Object obj = this.l; if (obj instanceof Activity) { try { str = uLO.mp_((Activity) obj); } catch (IllegalArgumentException unused) { str = null; } if (str != null) { pwE C = C(); if (C == null) { this.S = true; } else { C.b(true); } } b(this); } this.N = new Configuration(this.f.getResources().getConfiguration()); this.M = true; } @Override // o.Yju public void cH_(Bundle bundle) { F(); } @Override // o.Yju public pwE m() { N(); return this.c; } final Window.Callback cA_() { return this.p.getCallback(); } private void N() { F(); if (this.h && this.c == null) { Object obj = this.l; if (obj instanceof Activity) { this.c = new wcf((Activity) this.l, this.s); } else if (obj instanceof Dialog) { this.c = new wcf((Dialog) this.l); } pwE pwe = this.c; if (pwe != null) { pwe.b(this.S); } } } @Override // o.Yju public void a(Toolbar toolbar) { if (this.l instanceof Activity) { pwE m = m(); if (m instanceof wcf) { throw new IllegalStateException("This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead."); } this.f6367o = null; if (m != null) { m.g(); } this.c = null; if (toolbar != null) { WNf wNf = new WNf(toolbar, x(), this.G); this.c = wNf; this.G.b(wNf.d); toolbar.setBackInvokedCallbackEnabled(true); } else { this.G.b(null); } n(); } } final Context v() { pwE m = m(); Context e = m != null ? m.e() : null; return e == null ? this.f : e; } @Override // o.Yju public MenuInflater cz_() { if (this.f6367o == null) { N(); pwE pwe = this.c; this.f6367o = new JHJ(pwe != null ? pwe.e() : this.f); } return this.f6367o; } @Override // o.Yju public T c(int i) { F(); return (T) this.p.findViewById(i); } @Override // o.Yju public void cB_(Configuration configuration) { pwE m; if (this.h && this.ac && (m = m()) != null) { m.dM_(configuration); } RXZ.c().b(this.f); this.N = new Configuration(this.f.getResources().getConfiguration()); e(false, false); } @Override // o.Yju public void p() { e(true, false); } @Override // o.Yju public void t() { pwE m = m(); if (m != null) { m.e(false); } } @Override // o.Yju public void k() { pwE m = m(); if (m != null) { m.e(true); } } @Override // o.Yju public void d(View view) { F(); ViewGroup viewGroup = (ViewGroup) this.r.findViewById(R.id.content); viewGroup.removeAllViews(); viewGroup.addView(view); this.G.db_(this.p.getCallback()); } @Override // o.Yju public void d(int i) { F(); ViewGroup viewGroup = (ViewGroup) this.r.findViewById(R.id.content); viewGroup.removeAllViews(); LayoutInflater.from(this.f).inflate(i, viewGroup); this.G.db_(this.p.getCallback()); } @Override // o.Yju public void cL_(View view, ViewGroup.LayoutParams layoutParams) { F(); ViewGroup viewGroup = (ViewGroup) this.r.findViewById(R.id.content); viewGroup.removeAllViews(); viewGroup.addView(view, layoutParams); this.G.db_(this.p.getCallback()); } @Override // o.Yju public void ct_(View view, ViewGroup.LayoutParams layoutParams) { F(); ((ViewGroup) this.r.findViewById(R.id.content)).addView(view, layoutParams); this.G.db_(this.p.getCallback()); } /* JADX WARN: Removed duplicated region for block: B:16:0x0058 */ @Override // o.Yju /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public void l() { /* r3 = this; java.lang.Object r0 = r3.l boolean r0 = r0 instanceof android.app.Activity if (r0 == 0) goto L9 d(r3) L9: boolean r0 = r3.m if (r0 == 0) goto L18 android.view.Window r0 = r3.p android.view.View r0 = r0.getDecorView() java.lang.Runnable r1 = r3.R r0.removeCallbacks(r1) L18: r0 = 1 r3.g = r0 int r0 = r3.U r1 = -100 if (r0 == r1) goto L45 java.lang.Object r0 = r3.l boolean r1 = r0 instanceof android.app.Activity if (r1 == 0) goto L45 android.app.Activity r0 = (android.app.Activity) r0 boolean r0 = r0.isChangingConfigurations() if (r0 == 0) goto L45 o.DFj r0 = androidx.appcompat.app.AppCompatDelegateImpl.v java.lang.Object r1 = r3.l java.lang.Class r1 = r1.getClass() java.lang.String r1 = r1.getName() int r2 = r3.U java.lang.Integer r2 = java.lang.Integer.valueOf(r2) r0.put(r1, r2) goto L54 L45: o.DFj r0 = androidx.appcompat.app.AppCompatDelegateImpl.v java.lang.Object r1 = r3.l java.lang.Class r1 = r1.getClass() java.lang.String r1 = r1.getName() r0.remove(r1) L54: o.pwE r0 = r3.c if (r0 == 0) goto L5b r0.g() L5b: r3.E() return */ throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.app.AppCompatDelegateImpl.l():void"); } private void E() { NHB nhb = this.I; if (nhb != null) { nhb.a(); } NHB nhb2 = this.E; if (nhb2 != null) { nhb2.a(); } } private void H() { if (this.p == null) { Object obj = this.l; if (obj instanceof Activity) { ch_(((Activity) obj).getWindow()); } } if (this.p == null) { throw new IllegalStateException("We have not been given a Window"); } } private void ch_(Window window) { if (this.p != null) { throw new IllegalStateException("AppCompat has already installed itself into the Window"); } Window.Callback callback = window.getCallback(); if (callback instanceof tOB) { throw new IllegalStateException("AppCompat has already installed itself into the Window"); } tOB tob = new tOB(this, callback); this.G = tob; window.setCallback(tob); Context context = this.f; C0683McA c0683McA = new C0683McA(context, context.obtainStyledAttributes((AttributeSet) null, A)); Drawable jM_ = c0683McA.jM_(0); if (jM_ != null) { window.setBackgroundDrawable(jM_); } c0683McA.d.recycle(); this.p = window; if (Build.VERSION.SDK_INT < 33 || this.L != null) { return; } cM_(null); } private void F() { if (this.ac) { return; } this.r = cj_(); CharSequence x = x(); if (!TextUtils.isEmpty(x)) { jdi jdiVar = this.J; if (jdiVar != null) { jdiVar.setWindowTitle(x); } else if (C() != null) { C().e(x); } else { TextView textView = this.ae; if (textView != null) { textView.setText(x); } } } A(); cJ_(this.r); this.ac = true; vUG c = c(0, false); if (this.g) { return; } if (c == null || c.f6368o == null) { j(108); } } private ViewGroup cj_() { ViewGroup viewGroup; TypedArray obtainStyledAttributes = this.f.obtainStyledAttributes(SYO.ZqN.AppCompatTheme); if (!obtainStyledAttributes.hasValue(SYO.ZqN.AppCompatTheme_windowActionBar)) { obtainStyledAttributes.recycle(); throw new IllegalStateException("You need to use a Theme.AppCompat theme (or descendant) with this activity."); } if (obtainStyledAttributes.getBoolean(SYO.ZqN.AppCompatTheme_windowNoTitle, false)) { a(1); } else if (obtainStyledAttributes.getBoolean(SYO.ZqN.AppCompatTheme_windowActionBar, false)) { a(108); } if (obtainStyledAttributes.getBoolean(SYO.ZqN.AppCompatTheme_windowActionBarOverlay, false)) { a(109); } if (obtainStyledAttributes.getBoolean(SYO.ZqN.AppCompatTheme_windowActionModeOverlay, false)) { a(10); } this.k = obtainStyledAttributes.getBoolean(SYO.ZqN.AppCompatTheme_android_windowIsFloating, false); obtainStyledAttributes.recycle(); H(); this.p.getDecorView(); LayoutInflater from = LayoutInflater.from(this.f); if (this.x) { viewGroup = this.q ? (ViewGroup) from.inflate(SYO.ojQ.abc_screen_simple_overlay_action_mode, (ViewGroup) null) : (ViewGroup) from.inflate(SYO.ojQ.abc_screen_simple, (ViewGroup) null); } else if (this.k) { viewGroup = (ViewGroup) from.inflate(SYO.ojQ.abc_dialog_title_material, (ViewGroup) null); this.s = false; this.h = false; } else if (this.h) { TypedValue typedValue = new TypedValue(); this.f.getTheme().resolveAttribute(SYO.IeS.actionBarTheme, typedValue, true); viewGroup = (ViewGroup) LayoutInflater.from(typedValue.resourceId != 0 ? new mhG(this.f, typedValue.resourceId) : this.f).inflate(SYO.ojQ.abc_screen_toolbar, (ViewGroup) null); jdi jdiVar = (jdi) viewGroup.findViewById(SYO.saX.decor_content_parent); this.J = jdiVar; jdiVar.setWindowCallback(cA_()); if (this.s) { this.J.e(109); } if (this.O) { this.J.e(2); } if (this.Q) { this.J.e(5); } } else { viewGroup = null; } if (viewGroup == null) { StringBuilder sb = new StringBuilder("AppCompat does not support the current theme features: { windowActionBar: "); sb.append(this.h); sb.append(", windowActionBarOverlay: "); sb.append(this.s); sb.append(", android:windowIsFloating: "); sb.append(this.k); sb.append(", windowActionModeOverlay: "); sb.append(this.q); sb.append(", windowNoTitle: "); sb.append(this.x); sb.append(" }"); throw new IllegalArgumentException(sb.toString()); } ViewCompat.c(viewGroup, new LbT(this) { // from class: androidx.appcompat.app.AppCompatDelegateImpl.5 final AppCompatDelegateImpl d; { this.d = this; } @Override // o.LbT public WindowInsetsCompat e(View view, WindowInsetsCompat windowInsetsCompat) { int i = windowInsetsCompat.i(); int cN_ = this.d.cN_(windowInsetsCompat, null); if (i != cN_) { windowInsetsCompat = windowInsetsCompat.e(windowInsetsCompat.g(), cN_, windowInsetsCompat.j(), windowInsetsCompat.f()); } return ViewCompat.e(view, windowInsetsCompat); } }); if (this.J == null) { this.ae = (TextView) viewGroup.findViewById(SYO.saX.title); } mxt.d(viewGroup); ContentFrameLayout contentFrameLayout = (ContentFrameLayout) viewGroup.findViewById(SYO.saX.action_bar_activity_content); ViewGroup viewGroup2 = (ViewGroup) this.p.findViewById(R.id.content); if (viewGroup2 != null) { while (viewGroup2.getChildCount() > 0) { View childAt = viewGroup2.getChildAt(0); viewGroup2.removeViewAt(0); contentFrameLayout.addView(childAt); } viewGroup2.setId(-1); contentFrameLayout.setId(R.id.content); if (viewGroup2 instanceof FrameLayout) { ((FrameLayout) viewGroup2).setForeground(null); } } this.p.setContentView(viewGroup); contentFrameLayout.setAttachListener(new ContentFrameLayout.Sts(this) { // from class: androidx.appcompat.app.AppCompatDelegateImpl.2 final AppCompatDelegateImpl b; @Override // androidx.appcompat.widget.ContentFrameLayout.Sts public void c() { } { this.b = this; } @Override // androidx.appcompat.widget.ContentFrameLayout.Sts public void a() { this.b.s(); } }); return viewGroup; } private void A() { ContentFrameLayout contentFrameLayout = (ContentFrameLayout) this.r.findViewById(R.id.content); View decorView = this.p.getDecorView(); contentFrameLayout.setDecorPadding(decorView.getPaddingLeft(), decorView.getPaddingTop(), decorView.getPaddingRight(), decorView.getPaddingBottom()); TypedArray obtainStyledAttributes = this.f.obtainStyledAttributes(SYO.ZqN.AppCompatTheme); obtainStyledAttributes.getValue(SYO.ZqN.AppCompatTheme_windowMinWidthMajor, contentFrameLayout.hP_()); obtainStyledAttributes.getValue(SYO.ZqN.AppCompatTheme_windowMinWidthMinor, contentFrameLayout.hQ_()); if (obtainStyledAttributes.hasValue(SYO.ZqN.AppCompatTheme_windowFixedWidthMajor)) { obtainStyledAttributes.getValue(SYO.ZqN.AppCompatTheme_windowFixedWidthMajor, contentFrameLayout.hN_()); } if (obtainStyledAttributes.hasValue(SYO.ZqN.AppCompatTheme_windowFixedWidthMinor)) { obtainStyledAttributes.getValue(SYO.ZqN.AppCompatTheme_windowFixedWidthMinor, contentFrameLayout.hO_()); } if (obtainStyledAttributes.hasValue(SYO.ZqN.AppCompatTheme_windowFixedHeightMajor)) { obtainStyledAttributes.getValue(SYO.ZqN.AppCompatTheme_windowFixedHeightMajor, contentFrameLayout.hL_()); } if (obtainStyledAttributes.hasValue(SYO.ZqN.AppCompatTheme_windowFixedHeightMinor)) { obtainStyledAttributes.getValue(SYO.ZqN.AppCompatTheme_windowFixedHeightMinor, contentFrameLayout.hM_()); } obtainStyledAttributes.recycle(); contentFrameLayout.requestLayout(); } @Override // o.Yju public boolean a(int i) { int g = g(i); if (this.x && g == 108) { return false; } if (this.h && g == 1) { this.h = false; } if (g == 1) { K(); this.x = true; return true; } if (g == 2) { K(); this.O = true; return true; } if (g == 5) { K(); this.Q = true; return true; } if (g == 10) { K(); this.q = true; return true; } if (g == 108) { K(); this.h = true; return true; } if (g == 109) { K(); this.s = true; return true; } return this.p.requestFeature(g); } @Override // o.Yju public final void c(CharSequence charSequence) { this.ah = charSequence; jdi jdiVar = this.J; if (jdiVar != null) { jdiVar.setWindowTitle(charSequence); return; } if (C() != null) { C().e(charSequence); return; } TextView textView = this.ae; if (textView != null) { textView.setText(charSequence); } } final CharSequence x() { Object obj = this.l; return obj instanceof Activity ? ((Activity) obj).getTitle() : this.ah; } void i(int i) { if (i == 108) { pwE m = m(); if (m != null) { m.a(false); return; } return; } if (i == 0) { vUG c = c(i, true); if (c.i) { d(c, false); } } } void f(int i) { pwE m; if (i != 108 || (m = m()) == null) { return; } m.a(true); } @Override // o.NoP.Sts public boolean Ko_(NoP noP, MenuItem menuItem) { vUG cx_; Window.Callback cA_ = cA_(); if (cA_ == null || this.g || (cx_ = cx_(noP.b())) == null) { return false; } return cA_.onMenuItemSelected(cx_.b, menuItem); } @Override // o.NoP.Sts public void b(NoP noP) { c(true); } @Override // o.Yju public vsf b(vsf.HBt hBt) { qPj qpj; if (hBt == null) { throw new IllegalArgumentException("ActionMode callback can not be null."); } vsf vsfVar = this.d; if (vsfVar != null) { vsfVar.e(); } IeS ieS = new IeS(this, hBt); pwE m = m(); if (m != null) { vsf c = m.c(ieS); this.d = c; if (c != null && (qpj = this.j) != null) { qpj.onSupportActionModeStarted(c); } } if (this.d == null) { this.d = d(ieS); } D(); return this.d; } @Override // o.Yju public void n() { if (C() == null || m().j()) { return; } j(0); } /* JADX WARN: Removed duplicated region for block: B:14:0x0025 */ /* JADX WARN: Removed duplicated region for block: B:23:0x0029 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ o.vsf d(o.vsf.HBt r8) { /* Method dump skipped, instructions count: 363 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.app.AppCompatDelegateImpl.d(o.vsf$HBt):o.vsf"); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: androidx.appcompat.app.AppCompatDelegateImpl$4, reason: invalid class name */ /* loaded from: classes.dex */ public class AnonymousClass4 implements Runnable { final AppCompatDelegateImpl c; AnonymousClass4(AppCompatDelegateImpl appCompatDelegateImpl) { this.c = appCompatDelegateImpl; } @Override // java.lang.Runnable public void run() { this.c.b.showAtLocation(this.c.e, 55, 0, 0); this.c.q(); if (this.c.B()) { this.c.e.setAlpha(BitmapDescriptorFactory.HUE_RED); AppCompatDelegateImpl appCompatDelegateImpl = this.c; appCompatDelegateImpl.i = ViewCompat.b(appCompatDelegateImpl.e).b(1.0f); this.c.i.b(new PBh(this) { // from class: androidx.appcompat.app.AppCompatDelegateImpl.4.3 final AnonymousClass4 c; { this.c = this; } @Override // o.PBh, o.InterfaceC15687hkl public void e(View view) { this.c.c.e.setVisibility(0); } @Override // o.PBh, o.InterfaceC15687hkl public void d(View view) { this.c.c.e.setAlpha(1.0f); this.c.c.i.b((InterfaceC15687hkl) null); this.c.c.i = null; } }); return; } this.c.e.setAlpha(1.0f); this.c.e.setVisibility(0); } } final boolean B() { ViewGroup viewGroup; return this.ac && (viewGroup = this.r) != null && ViewCompat.G(viewGroup); } void q() { ViewPropertyAnimatorCompat viewPropertyAnimatorCompat = this.i; if (viewPropertyAnimatorCompat != null) { viewPropertyAnimatorCompat.d(); } } boolean z() { if (this.L == null) { return false; } vUG c = c(0, false); return (c != null && c.i) || this.d != null; } public boolean y() { boolean z = this.X; this.X = false; vUG c = c(0, false); if (c != null && c.i) { if (!z) { d(c, true); } return true; } vsf vsfVar = this.d; if (vsfVar != null) { vsfVar.e(); return true; } pwE m = m(); return m != null && m.a(); } boolean cE_(int i, KeyEvent keyEvent) { pwE m = m(); if (m != null && m.dN_(i, keyEvent)) { return true; } vUG vug = this.Z; if (vug != null && co_(vug, keyEvent.getKeyCode(), keyEvent, 1)) { vUG vug2 = this.Z; if (vug2 != null) { vug2.j = true; } return true; } if (this.Z == null) { vUG c = c(0, true); cp_(c, keyEvent); boolean co_ = co_(c, keyEvent.getKeyCode(), keyEvent, 1); c.g = false; if (co_) { return true; } } return false; } boolean cw_(KeyEvent keyEvent) { View decorView; Object obj = this.l; if (((obj instanceof Rut.Sts) || (obj instanceof JRt)) && (decorView = this.p.getDecorView()) != null && ViewCompat.se_(decorView, keyEvent)) { return true; } if (keyEvent.getKeyCode() == 82 && this.G.da_(this.p.getCallback(), keyEvent)) { return true; } int keyCode = keyEvent.getKeyCode(); return keyEvent.getAction() == 0 ? cD_(keyCode, keyEvent) : cF_(keyCode, keyEvent); } boolean cF_(int i, KeyEvent keyEvent) { if (i != 4) { if (i == 82) { cm_(0, keyEvent); return true; } } else if (y()) { return true; } return false; } boolean cD_(int i, KeyEvent keyEvent) { if (i == 4) { this.X = (keyEvent.getFlags() & 128) != 0; } else if (i == 82) { cl_(0, keyEvent); return true; } return false; } /* JADX WARN: Code restructure failed: missing block: B:27:0x008b, code lost: if (o.C15973jzh.a(r4, r6) != false) goto L28; */ /* JADX WARN: Code restructure failed: missing block: B:28:0x008d, code lost: r7 = true; */ /* JADX WARN: Code restructure failed: missing block: B:36:0x0098, code lost: if (((org.xmlpull.v1.XmlPullParser) r15).getDepth() > 1) goto L28; */ /* JADX WARN: Multi-variable type inference failed */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public android.view.View cv_(android.view.View r12, java.lang.String r13, android.content.Context r14, android.util.AttributeSet r15) { /* r11 = this; o.NOK r0 = r11.C r1 = 0 if (r0 != 0) goto L3f android.content.Context r0 = r11.f int[] r2 = o.SYO.ZqN.AppCompatTheme android.content.res.TypedArray r0 = r0.obtainStyledAttributes(r2) int r2 = o.SYO.ZqN.AppCompatTheme_viewInflaterClass java.lang.String r0 = r0.getString(r2) if (r0 != 0) goto L1d o.NOK r0 = new o.NOK r0.() r11.C = r0 goto L3f L1d: android.content.Context r2 = r11.f // Catch: java.lang.Throwable -> L38 java.lang.ClassLoader r2 = r2.getClassLoader() // Catch: java.lang.Throwable -> L38 java.lang.Class r0 = r2.loadClass(r0) // Catch: java.lang.Throwable -> L38 java.lang.Class[] r2 = new java.lang.Class[r1] // Catch: java.lang.Throwable -> L38 java.lang.reflect.Constructor r0 = r0.getDeclaredConstructor(r2) // Catch: java.lang.Throwable -> L38 java.lang.Object[] r2 = new java.lang.Object[r1] // Catch: java.lang.Throwable -> L38 java.lang.Object r0 = r0.newInstance(r2) // Catch: java.lang.Throwable -> L38 o.NOK r0 = (o.NOK) r0 // Catch: java.lang.Throwable -> L38 r11.C = r0 // Catch: java.lang.Throwable -> L38 goto L3f L38: o.NOK r0 = new o.NOK r0.() r11.C = r0 L3f: boolean r8 = androidx.appcompat.app.AppCompatDelegateImpl.w if (r8 == 0) goto La2 o.jzh r0 = r11.W if (r0 != 0) goto L4e o.jzh r0 = new o.jzh r0.() r11.W = r0 L4e: o.jzh r0 = r11.W boolean r2 = r15 instanceof org.xmlpull.v1.XmlPullParser r3 = 1 if (r2 == 0) goto L8f r4 = r15 org.xmlpull.v1.XmlPullParser r4 = (org.xmlpull.v1.XmlPullParser) r4 int r5 = r4.getDepth() if (r5 != r3) goto L8f java.util.Deque> r5 = r0.a L60: boolean r6 = r5.isEmpty() if (r6 != 0) goto L7c java.lang.Object r6 = r5.peek() java.lang.ref.WeakReference r6 = (java.lang.ref.WeakReference) r6 java.lang.Object r6 = r6.get() org.xmlpull.v1.XmlPullParser r6 = (org.xmlpull.v1.XmlPullParser) r6 boolean r7 = o.C15973jzh.c(r6) if (r7 == 0) goto L7d r5.pop() goto L60 L7c: r6 = 0 L7d: java.util.Deque> r0 = r0.a java.lang.ref.WeakReference r5 = new java.lang.ref.WeakReference r5.(r4) r0.push(r5) boolean r0 = o.C15973jzh.a(r4, r6) if (r0 == 0) goto L8f L8d: r7 = r3 goto La3 L8f: if (r2 == 0) goto L9b r0 = r15 org.xmlpull.v1.XmlPullParser r0 = (org.xmlpull.v1.XmlPullParser) r0 int r0 = r0.getDepth() if (r0 <= r3) goto La2 goto L8d L9b: r0 = r12 android.view.ViewParent r0 = (android.view.ViewParent) r0 boolean r1 = r11.cq_(r0) La2: r7 = r1 La3: o.NOK r2 = r11.C o.Itu.a() r9 = 1 r10 = 0 r3 = r12 r4 = r13 r5 = r14 r6 = r15 android.view.View r12 = r2.dC_(r3, r4, r5, r6, r7, r8, r9, r10) return r12 */ throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.app.AppCompatDelegateImpl.cv_(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet):android.view.View"); } private boolean cq_(ViewParent viewParent) { if (viewParent == null) { return false; } View decorView = this.p.getDecorView(); while (viewParent != null) { if (viewParent == decorView || !(viewParent instanceof View) || ViewCompat.H((View) viewParent)) { return false; } viewParent = viewParent.getParent(); } return true; } @Override // o.Yju public void o() { LayoutInflater from = LayoutInflater.from(this.f); if (from.getFactory() == null) { C1982aTx.rw_(from, this); } else { from.getFactory2(); } } @Override // android.view.LayoutInflater.Factory2 public final View onCreateView(View view, String str, Context context, AttributeSet attributeSet) { return cv_(view, str, context, attributeSet); } @Override // android.view.LayoutInflater.Factory public View onCreateView(String str, Context context, AttributeSet attributeSet) { return onCreateView(null, str, context, attributeSet); } private AppCompatActivity L() { for (Context context = this.f; context != null; context = ((ContextWrapper) context).getBaseContext()) { if (context instanceof AppCompatActivity) { return (AppCompatActivity) context; } if (!(context instanceof ContextWrapper)) { return null; } } return null; } /* JADX WARN: Removed duplicated region for block: B:36:0x00ef */ /* JADX WARN: Removed duplicated region for block: B:38:? A[RETURN, SYNTHETIC] */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private void cn_(androidx.appcompat.app.AppCompatDelegateImpl.vUG r12, android.view.KeyEvent r13) { /* Method dump skipped, instructions count: 246 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.app.AppCompatDelegateImpl.cn_(androidx.appcompat.app.AppCompatDelegateImpl$vUG, android.view.KeyEvent):void"); } private boolean b(vUG vug) { vug.b(v()); vug.c = new ListMenuDecorView(this, vug.m); vug.h = 81; return true; } private void c(boolean z) { jdi jdiVar = this.J; if (jdiVar != null && jdiVar.b() && (!ViewConfiguration.get(this.f).hasPermanentMenuKey() || this.J.d())) { Window.Callback cA_ = cA_(); if (this.J.h() && z) { this.J.a(); if (this.g) { return; } cA_.onPanelClosed(108, c(0, true).f6368o); return; } if (cA_ == null || this.g) { return; } if (this.m && (this.n & 1) != 0) { this.p.getDecorView().removeCallbacks(this.R); this.R.run(); } vUG c = c(0, true); if (c.f6368o == null || c.l || !cA_.onPreparePanel(0, c.a, c.f6368o)) { return; } cA_.onMenuOpened(108, c.f6368o); this.J.f(); return; } vUG c2 = c(0, true); c2.n = true; d(c2, false); cn_(c2, null); } private boolean c(vUG vug) { Resources.Theme theme; Context context = this.f; if ((vug.b == 0 || vug.b == 108) && this.J != null) { TypedValue typedValue = new TypedValue(); Resources.Theme theme2 = context.getTheme(); theme2.resolveAttribute(SYO.IeS.actionBarTheme, typedValue, true); if (typedValue.resourceId != 0) { theme = context.getResources().newTheme(); theme.setTo(theme2); theme.applyStyle(typedValue.resourceId, true); theme.resolveAttribute(SYO.IeS.actionBarWidgetTheme, typedValue, true); } else { theme2.resolveAttribute(SYO.IeS.actionBarWidgetTheme, typedValue, true); theme = null; } if (typedValue.resourceId != 0) { if (theme == null) { theme = context.getResources().newTheme(); theme.setTo(theme2); } theme.applyStyle(typedValue.resourceId, true); } if (theme != null) { mhG mhg = new mhG(context, 0); mhg.getTheme().setTo(theme); context = mhg; } } NoP noP = new NoP(context); noP.d(this); vug.b(noP); return true; } private boolean d(vUG vug) { if (vug.a != null) { vug.p = vug.a; return true; } if (vug.f6368o == null) { return false; } if (this.T == null) { this.T = new mxa(this); } vug.p = (View) vug.d(this.T); return vug.p != null; } private boolean cp_(vUG vug, KeyEvent keyEvent) { jdi jdiVar; jdi jdiVar2; jdi jdiVar3; if (this.g) { return false; } if (vug.g) { return true; } vUG vug2 = this.Z; if (vug2 != null && vug2 != vug) { d(vug2, false); } Window.Callback cA_ = cA_(); if (cA_ != null) { vug.a = cA_.onCreatePanelView(vug.b); } boolean z = vug.b == 0 || vug.b == 108; if (z && (jdiVar3 = this.J) != null) { jdiVar3.setMenuPrepared(); } if (vug.a == null && (!z || !(C() instanceof WNf))) { if (vug.f6368o == null || vug.l) { if (vug.f6368o == null && (!c(vug) || vug.f6368o == null)) { return false; } if (z && this.J != null) { if (this.B == null) { this.B = new RVV(this); } this.J.setMenu(vug.f6368o, this.B); } NoP noP = vug.f6368o; if (!noP.t) { noP.t = true; noP.n = false; noP.p = false; } if (!cA_.onCreatePanelMenu(vug.b, vug.f6368o)) { vug.b((NoP) null); if (z && (jdiVar = this.J) != null) { jdiVar.setMenu(null, this.B); } return false; } vug.l = false; } NoP noP2 = vug.f6368o; if (!noP2.t) { noP2.t = true; noP2.n = false; noP2.p = false; } if (vug.d != null) { vug.f6368o.eN_(vug.d); vug.d = null; } if (!cA_.onPreparePanel(0, vug.a, vug.f6368o)) { if (z && (jdiVar2 = this.J) != null) { jdiVar2.setMenu(null, this.B); } NoP noP3 = vug.f6368o; noP3.t = false; if (noP3.n) { noP3.n = false; noP3.c(noP3.p); } return false; } vug.k = KeyCharacterMap.load(keyEvent != null ? keyEvent.getDeviceId() : -1).getKeyboardType() != 1; vug.f6368o.setQwertyMode(vug.k); NoP noP4 = vug.f6368o; noP4.t = false; if (noP4.n) { noP4.n = false; noP4.c(noP4.p); } } vug.g = true; vug.j = false; this.Z = vug; return true; } void d(NoP noP) { if (this.K) { return; } this.K = true; this.J.c(); Window.Callback cA_ = cA_(); if (cA_ != null && !this.g) { cA_.onPanelClosed(108, noP); } this.K = false; } void e(int i) { d(c(i, true), true); } void d(vUG vug, boolean z) { jdi jdiVar; if (z && vug.b == 0 && (jdiVar = this.J) != null && jdiVar.h()) { d(vug.f6368o); return; } WindowManager windowManager = (WindowManager) this.f.getSystemService("window"); if (windowManager != null && vug.i && vug.c != null) { windowManager.removeView(vug.c); if (z) { cu_(vug.b, vug, null); } } vug.g = false; vug.j = false; vug.i = false; vug.p = null; vug.n = true; if (this.Z == vug) { this.Z = null; } if (vug.b == 0) { D(); } } private boolean cl_(int i, KeyEvent keyEvent) { if (keyEvent.getRepeatCount() != 0) { return false; } vUG c = c(i, true); if (c.i) { return false; } return cp_(c, keyEvent); } /* JADX WARN: Code restructure failed: missing block: B:36:0x0059, code lost: if (cp_(r2, r5) != false) goto L31; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private boolean cm_(int r4, android.view.KeyEvent r5) { /* r3 = this; o.vsf r0 = r3.d r1 = 0 if (r0 == 0) goto L6 return r1 L6: r0 = 1 androidx.appcompat.app.AppCompatDelegateImpl$vUG r2 = r3.c(r4, r0) if (r4 != 0) goto L43 o.jdi r4 = r3.J if (r4 == 0) goto L43 boolean r4 = r4.b() if (r4 == 0) goto L43 android.content.Context r4 = r3.f android.view.ViewConfiguration r4 = android.view.ViewConfiguration.get(r4) boolean r4 = r4.hasPermanentMenuKey() if (r4 != 0) goto L43 o.jdi r4 = r3.J boolean r4 = r4.h() if (r4 != 0) goto L3c boolean r4 = r3.g if (r4 != 0) goto L5f boolean r4 = r3.cp_(r2, r5) if (r4 == 0) goto L5f o.jdi r4 = r3.J boolean r0 = r4.f() goto L67 L3c: o.jdi r4 = r3.J boolean r0 = r4.a() goto L67 L43: boolean r4 = r2.i if (r4 != 0) goto L61 boolean r4 = r2.j if (r4 != 0) goto L61 boolean r4 = r2.g if (r4 == 0) goto L5f boolean r4 = r2.l if (r4 == 0) goto L5b r2.g = r1 boolean r4 = r3.cp_(r2, r5) if (r4 == 0) goto L5f L5b: r3.cn_(r2, r5) goto L67 L5f: r0 = r1 goto L67 L61: boolean r4 = r2.i r3.d(r2, r0) r0 = r4 L67: if (r0 == 0) goto L7c android.content.Context r4 = r3.f android.content.Context r4 = r4.getApplicationContext() java.lang.String r5 = "audio" java.lang.Object r4 = r4.getSystemService(r5) android.media.AudioManager r4 = (android.media.AudioManager) r4 if (r4 == 0) goto L7c r4.playSoundEffect(r1) L7c: return r0 */ throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.app.AppCompatDelegateImpl.cm_(int, android.view.KeyEvent):boolean"); } void cu_(int i, vUG vug, Menu menu) { if (menu == null) { if (vug == null && i >= 0) { vUG[] vugArr = this.V; if (i < vugArr.length) { vug = vugArr[i]; } } if (vug != null) { menu = vug.f6368o; } } if ((vug == null || vug.i) && !this.g) { this.G.dc_(this.p.getCallback(), i, menu); } } vUG cx_(Menu menu) { vUG[] vugArr = this.V; int length = vugArr != null ? vugArr.length : 0; for (int i = 0; i < length; i++) { vUG vug = vugArr[i]; if (vug != null && vug.f6368o == menu) { return vug; } } return null; } protected vUG c(int i, boolean z) { vUG[] vugArr = this.V; if (vugArr == null || vugArr.length <= i) { vUG[] vugArr2 = new vUG[i + 1]; if (vugArr != null) { System.arraycopy(vugArr, 0, vugArr2, 0, vugArr.length); } this.V = vugArr2; vugArr = vugArr2; } vUG vug = vugArr[i]; if (vug != null) { return vug; } vUG vug2 = new vUG(i); vugArr[i] = vug2; return vug2; } private boolean co_(vUG vug, int i, KeyEvent keyEvent, int i2) { boolean z = false; if (keyEvent.isSystem()) { return false; } if ((vug.g || cp_(vug, keyEvent)) && vug.f6368o != null) { z = vug.f6368o.performShortcut(i, keyEvent, i2); } if (z && (i2 & 1) == 0 && this.J == null) { d(vug, true); } return z; } private void j(int i) { this.n = (1 << i) | this.n; if (this.m) { return; } ViewCompat.e(this.p.getDecorView(), this.R); this.m = true; } void h(int i) { vUG c; vUG c2 = c(i, true); if (c2.f6368o != null) { Bundle bundle = new Bundle(); c2.f6368o.eO_(bundle); if (bundle.size() > 0) { c2.d = bundle; } NoP noP = c2.f6368o; if (!noP.t) { noP.t = true; noP.n = false; noP.p = false; } c2.f6368o.clear(); } c2.l = true; c2.n = true; if ((i != 108 && i != 0) || this.J == null || (c = c(0, false)) == null) { return; } c.g = false; cp_(c, null); } final int cN_(WindowInsetsCompat windowInsetsCompat, Rect rect) { int i; boolean z; boolean z2; if (windowInsetsCompat != null) { i = windowInsetsCompat.i(); } else { i = rect != null ? rect.top : 0; } ActionBarContextView actionBarContextView = this.e; if (actionBarContextView == null || !(actionBarContextView.getLayoutParams() instanceof ViewGroup.MarginLayoutParams)) { z = false; } else { ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) this.e.getLayoutParams(); if (this.e.isShown()) { if (this.Y == null) { this.Y = new Rect(); this.aa = new Rect(); } Rect rect2 = this.Y; Rect rect3 = this.aa; if (windowInsetsCompat == null) { rect2.set(rect); } else { rect2.set(windowInsetsCompat.g(), windowInsetsCompat.i(), windowInsetsCompat.j(), windowInsetsCompat.f()); } mxt.kb_(this.r, rect2, rect3); int i2 = rect2.top; int i3 = rect2.left; int i4 = rect2.right; WindowInsetsCompat t = ViewCompat.t(this.r); int g = t == null ? 0 : t.g(); int j = t == null ? 0 : t.j(); if (marginLayoutParams.topMargin == i2 && marginLayoutParams.leftMargin == i3 && marginLayoutParams.rightMargin == i4) { z2 = false; } else { marginLayoutParams.topMargin = i2; marginLayoutParams.leftMargin = i3; marginLayoutParams.rightMargin = i4; z2 = true; } if (i2 <= 0 || this.ab != null) { View view = this.ab; if (view != null) { ViewGroup.MarginLayoutParams marginLayoutParams2 = (ViewGroup.MarginLayoutParams) view.getLayoutParams(); if (((ViewGroup.LayoutParams) marginLayoutParams2).height != marginLayoutParams.topMargin || marginLayoutParams2.leftMargin != g || marginLayoutParams2.rightMargin != j) { ((ViewGroup.LayoutParams) marginLayoutParams2).height = marginLayoutParams.topMargin; marginLayoutParams2.leftMargin = g; marginLayoutParams2.rightMargin = j; this.ab.setLayoutParams(marginLayoutParams2); } } } else { View view2 = new View(this.f); this.ab = view2; view2.setVisibility(8); FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, marginLayoutParams.topMargin, 51); ((ViewGroup.MarginLayoutParams) layoutParams).leftMargin = g; ((ViewGroup.MarginLayoutParams) layoutParams).rightMargin = j; this.r.addView(this.ab, -1, layoutParams); } View view3 = this.ab; z = view3 != null; if (z && view3.getVisibility() != 0) { c(this.ab); } if (!this.q && z) { i = 0; } } else if (marginLayoutParams.topMargin != 0) { marginLayoutParams.topMargin = 0; z2 = true; z = false; } else { z2 = false; z = false; } if (z2) { this.e.setLayoutParams(marginLayoutParams); } } View view4 = this.ab; if (view4 != null) { view4.setVisibility(z ? 0 : 8); } return i; } private void c(View view) { int color; if ((ViewCompat.w(view) & 8192) != 0) { color = nMh.getColor(this.f, SYO.HBt.abc_decor_view_status_guard_light); } else { color = nMh.getColor(this.f, SYO.HBt.abc_decor_view_status_guard); } view.setBackgroundColor(color); } private void K() { if (this.ac) { throw new AndroidRuntimeException("Window feature must be requested before adding content"); } } void s() { jdi jdiVar = this.J; if (jdiVar != null) { jdiVar.c(); } if (this.b != null) { this.p.getDecorView().removeCallbacks(this.t); if (this.b.isShowing()) { try { this.b.dismiss(); } catch (IllegalArgumentException unused) { } } this.b = null; } q(); vUG c = c(0, false); if (c == null || c.f6368o == null) { return; } c.f6368o.close(); } public boolean r() { return e(true); } @Override // o.Yju public boolean h() { if (b(this.f) && b() != null && !b().equals(e())) { h(this.f); } return e(true); } private boolean e(boolean z) { return e(z, true); } private boolean e(boolean z, boolean z2) { if (this.g) { return false; } int I = I(); int a = a(this.f, I); Plu i = Build.VERSION.SDK_INT < 33 ? i(this.f) : null; if (!z2 && i != null) { i = cy_(this.f.getResources().getConfiguration()); } boolean d = d(a, i, z); if (I == 0) { n(this.f).e(); } else { NHB nhb = this.I; if (nhb != null) { nhb.a(); } } if (I == 3) { l(this.f).e(); } else { NHB nhb2 = this.E; if (nhb2 != null) { nhb2.a(); } } return d; } Plu i(Context context) { Plu b; Plu d; Locale c; if (Build.VERSION.SDK_INT >= 33 || (b = b()) == null) { return null; } Plu cy_ = cy_(context.getApplicationContext().getResources().getConfiguration()); if (b == null || b.a()) { d = Plu.d(); } else { LinkedHashSet linkedHashSet = new LinkedHashSet(); for (int i = 0; i < b.b() + cy_.b(); i++) { if (i < b.b()) { c = b.c(i); } else { c = cy_.c(i - b.b()); } if (c != null) { linkedHashSet.add(c); } } d = Plu.d((Locale[]) linkedHashSet.toArray(new Locale[linkedHashSet.size()])); } return !d.a() ? d : cy_; } int a(Context context, int i) { if (i == -100) { return -1; } if (i != -1) { if (i == 0) { if (((UiModeManager) context.getApplicationContext().getSystemService("uimode")).getNightMode() == 0) { return -1; } return n(context).c(); } if (i != 1 && i != 2) { if (i == 3) { return l(context).c(); } throw new IllegalStateException("Unknown value set for night mode. Please use one of the MODE_NIGHT values from AppCompatDelegate."); } } return i; } private int I() { int i = this.U; return i == -100 ? c() : i; } void cK_(Configuration configuration, Plu plu) { saX.cW_(configuration, plu); } Plu cy_(Configuration configuration) { return saX.cV_(configuration); } void e(Plu plu) { saX.a(plu); } private Configuration ci_(Context context, int i, Plu plu, Configuration configuration, boolean z) { int i2; if (i == 1) { i2 = 16; } else if (i != 2) { i2 = z ? 0 : context.getApplicationContext().getResources().getConfiguration().uiMode & 48; } else { i2 = 32; } Configuration configuration2 = new Configuration(); configuration2.fontScale = BitmapDescriptorFactory.HUE_RED; if (configuration != null) { configuration2.setTo(configuration); } configuration2.uiMode = i2 | (configuration2.uiMode & (-49)); if (plu != null) { cK_(configuration2, plu); } return configuration2; } /* JADX WARN: Removed duplicated region for block: B:35:0x0080 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private boolean d(int r9, o.Plu r10, boolean r11) { /* r8 = this; android.content.Context r1 = r8.f r4 = 0 r5 = 0 r0 = r8 r2 = r9 r3 = r10 android.content.res.Configuration r0 = r0.ci_(r1, r2, r3, r4, r5) android.content.Context r1 = r8.f int r1 = r8.j(r1) android.content.res.Configuration r2 = r8.N if (r2 != 0) goto L1f android.content.Context r2 = r8.f android.content.res.Resources r2 = r2.getResources() android.content.res.Configuration r2 = r2.getConfiguration() L1f: int r3 = r2.uiMode int r4 = r0.uiMode r4 = r4 & 48 o.Plu r2 = r8.cy_(r2) r5 = 0 if (r10 != 0) goto L2e r0 = r5 goto L32 L2e: o.Plu r0 = r8.cy_(r0) L32: r3 = r3 & 48 r6 = 0 if (r3 == r4) goto L3a r3 = 512(0x200, float:7.17E-43) goto L3b L3a: r3 = r6 L3b: if (r0 == 0) goto L45 boolean r2 = r2.equals(r0) if (r2 != 0) goto L45 r3 = r3 | 8196(0x2004, float:1.1485E-41) L45: int r2 = ~r1 r2 = r2 & r3 r7 = 1 if (r2 == 0) goto L6f if (r11 == 0) goto L6f boolean r11 = r8.H if (r11 == 0) goto L6f boolean r11 = androidx.appcompat.app.AppCompatDelegateImpl.u if (r11 != 0) goto L58 boolean r11 = r8.M if (r11 == 0) goto L6f L58: java.lang.Object r11 = r8.l boolean r2 = r11 instanceof android.app.Activity if (r2 == 0) goto L6f android.app.Activity r11 = (android.app.Activity) r11 boolean r11 = r11.isChild() if (r11 != 0) goto L6f java.lang.Object r11 = r8.l android.app.Activity r11 = (android.app.Activity) r11 androidx.core.app.ActivityCompat.lL_(r11) r11 = r7 goto L70 L6f: r11 = r6 L70: if (r11 != 0) goto L7d if (r3 == 0) goto L7d r11 = r3 & r1 if (r11 != r3) goto L79 r6 = r7 L79: r8.cs_(r4, r0, r6, r5) goto L7e L7d: r7 = r11 L7e: if (r7 == 0) goto L9a java.lang.Object r11 = r8.l boolean r1 = r11 instanceof androidx.appcompat.app.AppCompatActivity if (r1 == 0) goto L9a r1 = r3 & 512(0x200, float:7.17E-43) if (r1 == 0) goto L8f androidx.appcompat.app.AppCompatActivity r11 = (androidx.appcompat.app.AppCompatActivity) r11 r11.onNightModeChanged(r9) L8f: r9 = r3 & 4 if (r9 == 0) goto L9a java.lang.Object r9 = r8.l androidx.appcompat.app.AppCompatActivity r9 = (androidx.appcompat.app.AppCompatActivity) r9 r9.onLocalesChanged(r10) L9a: if (r7 == 0) goto Laf if (r0 == 0) goto Laf android.content.Context r9 = r8.f android.content.res.Resources r9 = r9.getResources() android.content.res.Configuration r9 = r9.getConfiguration() o.Plu r9 = r8.cy_(r9) r8.e(r9) Laf: return r7 */ throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.app.AppCompatDelegateImpl.d(int, o.Plu, boolean):boolean"); } private void cs_(int i, Plu plu, boolean z, Configuration configuration) { Resources resources = this.f.getResources(); Configuration configuration2 = new Configuration(resources.getConfiguration()); if (configuration != null) { configuration2.updateFrom(configuration); } configuration2.uiMode = i | (resources.getConfiguration().uiMode & (-49)); if (plu != null) { cK_(configuration2, plu); } resources.updateConfiguration(configuration2, null); int i2 = this.af; if (i2 != 0) { this.f.setTheme(i2); this.f.getTheme().applyStyle(this.af, true); } if (z && (this.l instanceof Activity)) { cr_(configuration2); } } /* JADX WARN: Multi-variable type inference failed */ private void cr_(Configuration configuration) { Activity activity = (Activity) this.l; if (activity instanceof InterfaceC16541pFg) { if (((InterfaceC16541pFg) activity).getLifecycle().a().compareTo(wdQ.IeS.CREATED) >= 0) { activity.onConfigurationChanged(configuration); } } else { if (!this.M || this.g) { return; } activity.onConfigurationChanged(configuration); } } private NHB n(Context context) { if (this.I == null) { if (BWq.a == null) { Context applicationContext = context.getApplicationContext(); BWq.a = new BWq(applicationContext, (LocationManager) applicationContext.getSystemService("location")); } this.I = new ZnX(this, BWq.a); } return this.I; } private NHB l(Context context) { if (this.E == null) { this.E = new dAO(this, context); } return this.E; } private int j(Context context) { if (!this.z && (this.l instanceof Activity)) { PackageManager packageManager = context.getPackageManager(); if (packageManager == null) { return 0; } try { ActivityInfo activityInfo = packageManager.getActivityInfo(new ComponentName(context, this.l.getClass()), Build.VERSION.SDK_INT >= 29 ? 269221888 : 786432); if (activityInfo != null) { this.D = activityInfo.configChanges; } } catch (PackageManager.NameNotFoundException unused) { this.D = 0; } } this.z = true; return this.D; } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public class IeS implements vsf.HBt { private vsf.HBt b; final AppCompatDelegateImpl e; public IeS(AppCompatDelegateImpl appCompatDelegateImpl, vsf.HBt hBt) { this.e = appCompatDelegateImpl; this.b = hBt; } @Override // o.vsf.HBt public boolean ej_(vsf vsfVar, Menu menu) { return this.b.ej_(vsfVar, menu); } @Override // o.vsf.HBt public boolean ek_(vsf vsfVar, Menu menu) { ViewCompat.J(this.e.r); return this.b.ek_(vsfVar, menu); } @Override // o.vsf.HBt public boolean ei_(vsf vsfVar, MenuItem menuItem) { return this.b.ei_(vsfVar, menuItem); } @Override // o.vsf.HBt public void c(vsf vsfVar) { this.b.c(vsfVar); if (this.e.b != null) { this.e.p.getDecorView().removeCallbacks(this.e.t); } if (this.e.e != null) { this.e.q(); AppCompatDelegateImpl appCompatDelegateImpl = this.e; appCompatDelegateImpl.i = ViewCompat.b(appCompatDelegateImpl.e).b(BitmapDescriptorFactory.HUE_RED); this.e.i.b(new PBh(this) { // from class: androidx.appcompat.app.AppCompatDelegateImpl.IeS.2 final IeS c; { this.c = this; } @Override // o.PBh, o.InterfaceC15687hkl public void d(View view) { this.c.e.e.setVisibility(8); if (this.c.e.b != null) { this.c.e.b.dismiss(); } else if (this.c.e.e.getParent() instanceof View) { ViewCompat.J((View) this.c.e.e.getParent()); } this.c.e.e.c(); this.c.e.i.b((InterfaceC15687hkl) null); this.c.e.i = null; ViewCompat.J(this.c.e.r); } }); } if (this.e.j != null) { this.e.j.onSupportActionModeFinished(this.e.d); } this.e.d = null; ViewCompat.J(this.e.r); this.e.D(); } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public final class mxa implements InterfaceC15933jjG.Sts { final AppCompatDelegateImpl a; mxa(AppCompatDelegateImpl appCompatDelegateImpl) { this.a = appCompatDelegateImpl; } @Override // o.InterfaceC15933jjG.Sts public final void e(NoP noP, boolean z) { NoP b = noP.b(); boolean z2 = b != noP; AppCompatDelegateImpl appCompatDelegateImpl = this.a; if (z2) { noP = b; } vUG cx_ = appCompatDelegateImpl.cx_(noP); if (cx_ != null) { if (z2) { this.a.cu_(cx_.b, cx_, b); this.a.d(cx_, true); } else { this.a.d(cx_, z); } } } @Override // o.InterfaceC15933jjG.Sts public final boolean d(NoP noP) { Window.Callback cA_; if (noP != noP.b() || !this.a.h || (cA_ = this.a.cA_()) == null || this.a.g) { return true; } cA_.onMenuOpened(108, noP); return true; } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public final class RVV implements InterfaceC15933jjG.Sts { final AppCompatDelegateImpl a; RVV(AppCompatDelegateImpl appCompatDelegateImpl) { this.a = appCompatDelegateImpl; } @Override // o.InterfaceC15933jjG.Sts public final boolean d(NoP noP) { Window.Callback cA_ = this.a.cA_(); if (cA_ == null) { return true; } cA_.onMenuOpened(108, noP); return true; } @Override // o.InterfaceC15933jjG.Sts public final void e(NoP noP, boolean z) { this.a.d(noP); } } /* JADX INFO: Access modifiers changed from: protected */ /* loaded from: classes.dex */ public static final class vUG { View a; int b; ViewGroup c; Bundle d; int e; PEg f; boolean g; int h; boolean i; boolean j; public boolean k; boolean l; Context m; boolean n = false; /* renamed from: o, reason: collision with root package name */ NoP f6368o; View p; int r; int s; int t; vUG(int i) { this.b = i; } public final boolean a() { if (this.p == null) { return false; } if (this.a != null) { return true; } PEg pEg = this.f; if (pEg.b == null) { pEg.b = new PEg.RVV(pEg); } return pEg.b.getCount() > 0; } final void b(Context context) { TypedValue typedValue = new TypedValue(); Resources.Theme newTheme = context.getResources().newTheme(); newTheme.setTo(context.getTheme()); newTheme.resolveAttribute(SYO.IeS.actionBarPopupTheme, typedValue, true); if (typedValue.resourceId != 0) { newTheme.applyStyle(typedValue.resourceId, true); } newTheme.resolveAttribute(SYO.IeS.panelMenuListTheme, typedValue, true); if (typedValue.resourceId != 0) { newTheme.applyStyle(typedValue.resourceId, true); } else { newTheme.applyStyle(SYO.jbe.Theme_AppCompat_CompactMenu, true); } mhG mhg = new mhG(context, 0); mhg.getTheme().setTo(newTheme); this.m = mhg; TypedArray obtainStyledAttributes = mhg.obtainStyledAttributes(SYO.ZqN.AppCompatTheme); this.e = obtainStyledAttributes.getResourceId(SYO.ZqN.AppCompatTheme_panelBackground, 0); this.r = obtainStyledAttributes.getResourceId(SYO.ZqN.AppCompatTheme_android_windowAnimationStyle, 0); obtainStyledAttributes.recycle(); } final void b(NoP noP) { PEg pEg; NoP noP2 = this.f6368o; if (noP == noP2) { return; } if (noP2 != null) { noP2.b(this.f); } this.f6368o = noP; if (noP == null || (pEg = this.f) == null) { return; } Context context = noP.d; noP.r.add(new WeakReference<>(pEg)); pEg.a(context, noP); noP.f = true; } final Sya d(InterfaceC15933jjG.Sts sts) { if (this.f6368o == null) { return null; } if (this.f == null) { PEg pEg = new PEg(this.m, SYO.ojQ.abc_list_menu_item_layout); this.f = pEg; pEg.a = sts; NoP noP = this.f6368o; PEg pEg2 = this.f; Context context = noP.d; noP.r.add(new WeakReference<>(pEg2)); pEg2.a(context, noP); noP.f = true; } PEg pEg3 = this.f; ViewGroup viewGroup = this.c; if (pEg3.h == null) { pEg3.h = (ExpandedMenuView) pEg3.e.inflate(SYO.ojQ.abc_expanded_menu_layout, viewGroup, false); if (pEg3.b == null) { pEg3.b = new PEg.RVV(pEg3); } pEg3.h.setAdapter((ListAdapter) pEg3.b); pEg3.h.setOnItemClickListener(pEg3); } return pEg3.h; } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public class ListMenuDecorView extends ContentFrameLayout { final AppCompatDelegateImpl a; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public ListMenuDecorView(AppCompatDelegateImpl appCompatDelegateImpl, Context context) { super(context); this.a = appCompatDelegateImpl; } @Override // android.view.ViewGroup, android.view.View public boolean dispatchKeyEvent(KeyEvent keyEvent) { return this.a.cw_(keyEvent) || super.dispatchKeyEvent(keyEvent); } @Override // android.view.ViewGroup public boolean onInterceptTouchEvent(MotionEvent motionEvent) { if (motionEvent.getAction() == 0 && c((int) motionEvent.getX(), (int) motionEvent.getY())) { this.a.e(0); return true; } return super.onInterceptTouchEvent(motionEvent); } @Override // android.view.View public void setBackgroundResource(int i) { setBackgroundDrawable(AgY.dT_(getContext(), i)); } private boolean c(int i, int i2) { return i < -5 || i2 < -5 || i > getWidth() + 5 || i2 > getHeight() + 5; } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public class tOB extends QUF { private boolean b; private Sts c; private boolean d; final AppCompatDelegateImpl e; private boolean j; @Override // o.QUF, android.view.Window.Callback public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { return null; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ tOB(AppCompatDelegateImpl appCompatDelegateImpl, Window.Callback callback) { super(callback); this.e = appCompatDelegateImpl; } @Override // o.QUF, android.view.Window.Callback public boolean dispatchKeyEvent(KeyEvent keyEvent) { if (this.d) { return ep_().dispatchKeyEvent(keyEvent); } return this.e.cw_(keyEvent) || super.dispatchKeyEvent(keyEvent); } @Override // o.QUF, android.view.Window.Callback public boolean dispatchKeyShortcutEvent(KeyEvent keyEvent) { return super.dispatchKeyShortcutEvent(keyEvent) || this.e.cE_(keyEvent.getKeyCode(), keyEvent); } @Override // o.QUF, android.view.Window.Callback public boolean onCreatePanelMenu(int i, Menu menu) { if (i != 0 || (menu instanceof NoP)) { return super.onCreatePanelMenu(i, menu); } return false; } @Override // o.QUF, android.view.Window.Callback public View onCreatePanelView(int i) { View c; Sts sts = this.c; return (sts == null || (c = sts.c(i)) == null) ? super.onCreatePanelView(i) : c; } @Override // o.QUF, android.view.Window.Callback public void onContentChanged() { if (this.b) { ep_().onContentChanged(); } } @Override // o.QUF, android.view.Window.Callback public boolean onPreparePanel(int i, View view, Menu menu) { NoP noP = menu instanceof NoP ? (NoP) menu : null; if (i == 0 && noP == null) { return false; } if (noP != null) { noP.f8290o = true; } Sts sts = this.c; boolean z = sts != null && sts.d(i); if (!z) { z = super.onPreparePanel(i, view, menu); } if (noP != null) { noP.f8290o = false; } return z; } @Override // o.QUF, android.view.Window.Callback public boolean onMenuOpened(int i, Menu menu) { super.onMenuOpened(i, menu); this.e.f(i); return true; } @Override // o.QUF, android.view.Window.Callback public void onPanelClosed(int i, Menu menu) { if (this.j) { ep_().onPanelClosed(i, menu); } else { super.onPanelClosed(i, menu); this.e.i(i); } } final ActionMode dd_(ActionMode.Callback callback) { C0990TdL.HBt hBt = new C0990TdL.HBt(this.e.f, callback); vsf b = this.e.b(hBt); if (b != null) { return hBt.eh_(b); } return null; } @Override // o.QUF, android.view.Window.Callback public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int i) { if (this.e.w() && i == 0) { return dd_(callback); } return super.onWindowStartingActionMode(callback, i); } @Override // o.QUF, android.view.Window.Callback public void onProvideKeyboardShortcuts(List list, Menu menu, int i) { vUG c = this.e.c(0, true); if (c != null && c.f6368o != null) { super.onProvideKeyboardShortcuts(list, c.f6368o, i); } else { super.onProvideKeyboardShortcuts(list, menu, i); } } public void db_(Window.Callback callback) { try { this.b = true; callback.onContentChanged(); } finally { this.b = false; } } public boolean da_(Window.Callback callback, KeyEvent keyEvent) { try { this.d = true; return callback.dispatchKeyEvent(keyEvent); } finally { this.d = false; } } public void dc_(Window.Callback callback, int i, Menu menu) { try { this.j = true; callback.onPanelClosed(i, menu); } finally { this.j = false; } } void b(Sts sts) { this.c = sts; } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public abstract class NHB { private BroadcastReceiver a; final AppCompatDelegateImpl c; abstract void b(); abstract int c(); abstract IntentFilter dg_(); NHB(AppCompatDelegateImpl appCompatDelegateImpl) { this.c = appCompatDelegateImpl; } void e() { a(); IntentFilter dg_ = dg_(); if (dg_ == null || dg_.countActions() == 0) { return; } if (this.a == null) { this.a = new BroadcastReceiver(this) { // from class: androidx.appcompat.app.AppCompatDelegateImpl.NHB.4 final NHB a; { this.a = this; } @Override // android.content.BroadcastReceiver public void onReceive(Context context, Intent intent) { this.a.b(); } }; } this.c.f.registerReceiver(this.a, dg_); } void a() { if (this.a != null) { try { this.c.f.unregisterReceiver(this.a); } catch (IllegalArgumentException unused) { } this.a = null; } } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public class ZnX extends NHB { private final BWq d; final AppCompatDelegateImpl e; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ ZnX(AppCompatDelegateImpl appCompatDelegateImpl, BWq bWq) { super(appCompatDelegateImpl); this.e = appCompatDelegateImpl; this.d = bWq; } /* JADX WARN: Code restructure failed: missing block: B:44:0x00f1, code lost: if (r1 < 22) goto L47; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x00de, code lost: if (r1 != false) goto L48; */ /* JADX WARN: Code restructure failed: missing block: B:6:?, code lost: return r6; */ @Override // androidx.appcompat.app.AppCompatDelegateImpl.NHB /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public int c() { /* Method dump skipped, instructions count: 247 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.app.AppCompatDelegateImpl.ZnX.c():int"); } @Override // androidx.appcompat.app.AppCompatDelegateImpl.NHB public void b() { this.e.r(); } @Override // androidx.appcompat.app.AppCompatDelegateImpl.NHB IntentFilter dg_() { IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction("android.intent.action.TIME_SET"); intentFilter.addAction("android.intent.action.TIMEZONE_CHANGED"); intentFilter.addAction("android.intent.action.TIME_TICK"); return intentFilter; } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public class dAO extends NHB { private final PowerManager a; final AppCompatDelegateImpl e; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ dAO(AppCompatDelegateImpl appCompatDelegateImpl, Context context) { super(appCompatDelegateImpl); this.e = appCompatDelegateImpl; this.a = (PowerManager) context.getApplicationContext().getSystemService("power"); } @Override // androidx.appcompat.app.AppCompatDelegateImpl.NHB public int c() { return ojQ.cT_(this.a) ? 2 : 1; } @Override // androidx.appcompat.app.AppCompatDelegateImpl.NHB public void b() { this.e.r(); } @Override // androidx.appcompat.app.AppCompatDelegateImpl.NHB IntentFilter dg_() { IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction("android.os.action.POWER_SAVE_MODE_CHANGED"); return intentFilter; } } @Override // o.Yju public final XOs.LWm j() { return new HBt(this); } /* loaded from: classes.dex */ class HBt implements XOs.LWm { final AppCompatDelegateImpl e; HBt(AppCompatDelegateImpl appCompatDelegateImpl) { this.e = appCompatDelegateImpl; } } private static Configuration ck_(Configuration configuration, Configuration configuration2) { Configuration configuration3 = new Configuration(); configuration3.fontScale = BitmapDescriptorFactory.HUE_RED; if (configuration2 != null && configuration.diff(configuration2) != 0) { if (configuration.fontScale != configuration2.fontScale) { configuration3.fontScale = configuration2.fontScale; } if (configuration.mcc != configuration2.mcc) { configuration3.mcc = configuration2.mcc; } if (configuration.mnc != configuration2.mnc) { configuration3.mnc = configuration2.mnc; } saX.cU_(configuration, configuration2, configuration3); if (configuration.touchscreen != configuration2.touchscreen) { configuration3.touchscreen = configuration2.touchscreen; } if (configuration.keyboard != configuration2.keyboard) { configuration3.keyboard = configuration2.keyboard; } if (configuration.keyboardHidden != configuration2.keyboardHidden) { configuration3.keyboardHidden = configuration2.keyboardHidden; } if (configuration.navigation != configuration2.navigation) { configuration3.navigation = configuration2.navigation; } if (configuration.navigationHidden != configuration2.navigationHidden) { configuration3.navigationHidden = configuration2.navigationHidden; } if (configuration.orientation != configuration2.orientation) { configuration3.orientation = configuration2.orientation; } if ((configuration.screenLayout & 15) != (configuration2.screenLayout & 15)) { configuration3.screenLayout |= configuration2.screenLayout & 15; } if ((configuration.screenLayout & 192) != (configuration2.screenLayout & 192)) { configuration3.screenLayout |= configuration2.screenLayout & 192; } if ((configuration.screenLayout & 48) != (configuration2.screenLayout & 48)) { configuration3.screenLayout |= configuration2.screenLayout & 48; } if ((configuration.screenLayout & 768) != (configuration2.screenLayout & 768)) { configuration3.screenLayout |= configuration2.screenLayout & 768; } ZqN.cX_(configuration, configuration2, configuration3); if ((configuration.uiMode & 15) != (configuration2.uiMode & 15)) { configuration3.uiMode |= configuration2.uiMode & 15; } if ((configuration.uiMode & 48) != (configuration2.uiMode & 48)) { configuration3.uiMode |= configuration2.uiMode & 48; } if (configuration.screenWidthDp != configuration2.screenWidthDp) { configuration3.screenWidthDp = configuration2.screenWidthDp; } if (configuration.screenHeightDp != configuration2.screenHeightDp) { configuration3.screenHeightDp = configuration2.screenHeightDp; } if (configuration.smallestScreenWidthDp != configuration2.smallestScreenWidthDp) { configuration3.smallestScreenWidthDp = configuration2.smallestScreenWidthDp; } LWm.cS_(configuration, configuration2, configuration3); } return configuration3; } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public static class LWm { static void cS_(Configuration configuration, Configuration configuration2, Configuration configuration3) { if (configuration.densityDpi != configuration2.densityDpi) { configuration3.densityDpi = configuration2.densityDpi; } } static Context cR_(Context context, Configuration configuration) { return context.createConfigurationContext(configuration); } } /* loaded from: classes.dex */ static class ojQ { static boolean cT_(PowerManager powerManager) { return powerManager.isPowerSaveMode(); } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public static class saX { static void cU_(Configuration configuration, Configuration configuration2, Configuration configuration3) { LocaleList locales = configuration.getLocales(); LocaleList locales2 = configuration2.getLocales(); if (locales.equals(locales2)) { return; } configuration3.setLocales(locales2); configuration3.locale = configuration2.locale; } static Plu cV_(Configuration configuration) { return Plu.e(configuration.getLocales().toLanguageTags()); } static void cW_(Configuration configuration, Plu plu) { configuration.setLocales(LocaleList.forLanguageTags(plu.c())); } public static void a(Plu plu) { LocaleList.setDefault(LocaleList.forLanguageTags(plu.c())); } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public static class ZqN { static void cX_(Configuration configuration, Configuration configuration2, Configuration configuration3) { if ((configuration.colorMode & 3) != (configuration2.colorMode & 3)) { configuration3.colorMode |= configuration2.colorMode & 3; } if ((configuration.colorMode & 12) != (configuration2.colorMode & 12)) { configuration3.colorMode |= configuration2.colorMode & 12; } } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public static class jbe { static OnBackInvokedCallback cZ_(Object obj, final AppCompatDelegateImpl appCompatDelegateImpl) { Objects.requireNonNull(appCompatDelegateImpl); OnBackInvokedCallback onBackInvokedCallback = new OnBackInvokedCallback(appCompatDelegateImpl) { // from class: o.uqm public final AppCompatDelegateImpl c; @Override // android.window.OnBackInvokedCallback public final void onBackInvoked() { this.c.y(); } { this.c = appCompatDelegateImpl; } }; ((OnBackInvokedDispatcher) obj).registerOnBackInvokedCallback(1000000, onBackInvokedCallback); return onBackInvokedCallback; } static void c(Object obj, Object obj2) { ((OnBackInvokedDispatcher) obj).unregisterOnBackInvokedCallback((OnBackInvokedCallback) obj2); } static OnBackInvokedDispatcher cY_(Activity activity) { return activity.getOnBackInvokedDispatcher(); } } @Override // o.Yju public void b(int i) { this.af = i; } final pwE C() { return this.c; } public boolean w() { return this.P; } @Override // o.Yju public int f() { return this.U; } @Override // o.Yju public Context g() { return this.f; } }