2020-05-17 12:40:10 +00:00
.class public L androidx/appcompat/app/AppCompatDelegateImpl ;
.super L androidx/appcompat/app/AppCompatDelegate ;
.source "AppCompatDelegateImpl.java"
# interfaces
.implements L androidx/appcompat/view/menu/MenuBuilder$Callback ;
.implements L android/view/LayoutInflater$Factory2 ;
# annotations
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
.annotation system L dalvik/annotation/MemberClasses ;
value = {
L androidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl ;,
L androidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager ;,
L androidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager ;,
L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;,
L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;,
L androidx/appcompat/app/AppCompatDelegateImpl$ListMenuDecorView ;,
L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;,
L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;,
L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;,
L androidx/appcompat/app/AppCompatDelegateImpl$ActionModeCallbackWrapperV9 ;
}
.end annotation
# static fields
.field public static final DEBUG : Z = false
.field public static final EXCEPTION_HANDLER_MESSAGE_SUFFIX : L java/lang/String ; = ". If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way. See AppCompatDelegate.setCompatVectorFromResourcesEnabled() for more info."
.field public static final IS_PRE_LOLLIPOP : Z
.field public static final sAlwaysOverrideConfiguration : Z
.field public static sInstalledExceptionHandler : Z
.field public static final sLocalNightModes : L java/util/Map ;
.annotation system L dalvik/annotation/Signature ;
value = {
"Ljava/util/Map<" ,
"Ljava/lang/Class<" ,
"*>;" ,
"Ljava/lang/Integer;" ,
">;"
}
.end annotation
.end field
.field public static final sWindowBackgroundStyleable : [I
# instance fields
.field public mActionBar : L androidx/appcompat/app/ActionBar ;
.field public mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
.field public mActionMode : L androidx/appcompat/view/ActionMode ;
.field public mActionModePopup : L android/widget/PopupWindow ;
.field public mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
.field public mActivityHandlesUiMode : Z
.field public mActivityHandlesUiModeChecked : Z
.field public final mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
.field public mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
.field public mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
.field public mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
.field public mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
.field public mBaseContextAttached : Z
.field public mClosingActionMenu : Z
.field public final mContext : L android/content/Context ;
.field public mCreated : Z
.field public mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
.field public mEnableDefaultActionBarUp : Z
.field public mFadeAnim : L androidx/core/view/ViewPropertyAnimatorCompat ;
.field public mFeatureIndeterminateProgress : Z
.field public mFeatureProgress : Z
.field public mHandleNativeActionModes : Z
.field public mHasActionBar : Z
.field public final mHost : L java/lang/Object ;
.field public mInvalidatePanelMenuFeatures : I
.field public mInvalidatePanelMenuPosted : Z
.field public final mInvalidatePanelMenuRunnable : L java/lang/Runnable ;
.field public mIsDestroyed : Z
.field public mIsFloating : Z
.field public mLocalNightMode : I
.field public mLongPressBackDown : Z
.field public mMenuInflater : L android/view/MenuInflater ;
.field public mOverlayActionBar : Z
.field public mOverlayActionMode : Z
.field public mPanelMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;
.field public mPanels : [ L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
.field public mPreparedPanel : L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
.field public mShowActionModePopup : L java/lang/Runnable ;
.field public mStarted : Z
.field public mStatusGuard : L android/view/View ;
.field public mSubDecor : L android/view/ViewGroup ;
.field public mSubDecorInstalled : Z
.field public mTempRect1 : L android/graphics/Rect ;
.field public mTempRect2 : L android/graphics/Rect ;
.field public mThemeResId : I
.field public mTitle : L java/lang/CharSequence ;
.field public mTitleView : L android/widget/TextView ;
.field public mWindow : L android/view/Window ;
.field public mWindowNoTitle : Z
# direct methods
.method public static constructor <clinit> ( ) V
.locals 5
new-instance v0 , L androidx/collection/ArrayMap ;
invoke-direct { v0 } , L androidx/collection/ArrayMap ;-> <init> ( ) V
sput-object v0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sLocalNightModes : L java/util/Map ;
sget v0 , L android/os/Build$VERSION ;-> SDK_INT : I
const/4 v1 , 0x0
sput-boolean v1 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> IS_PRE_LOLLIPOP : Z
const/4 v2 , 0x1
new-array v3 , v2 , [I
const v4 , 0x1010054
aput v4 , v3 , v1
sput-object v3 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sWindowBackgroundStyleable : [I
const/16 v3 , 0x19
if-gt v0 , v3 , :cond_0
const/4 v1 , 0x1
:cond_0
sput-boolean v1 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sAlwaysOverrideConfiguration : Z
sget-boolean v0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> IS_PRE_LOLLIPOP : Z
if-eqz v0 , :cond_1
sget-boolean v0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sInstalledExceptionHandler : Z
if-nez v0 , :cond_1
invoke-static { } , L java/lang/Thread ;-> getDefaultUncaughtExceptionHandler ( ) L java/lang/Thread$UncaughtExceptionHandler ;
move-result-object v0
new-instance v1 , L androidx/appcompat/app/AppCompatDelegateImpl$1 ;
invoke-direct { v1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$1 ;-> <init> ( L java/lang/Thread$UncaughtExceptionHandler ;) V
invoke-static { v1 } , L java/lang/Thread ;-> setDefaultUncaughtExceptionHandler ( L java/lang/Thread$UncaughtExceptionHandler ;) V
sput-boolean v2 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sInstalledExceptionHandler : Z
:cond_1
return-void
.end method
.method public constructor <init> ( L android/app/Activity ;L androidx/appcompat/app/AppCompatCallback ;) V
.locals 1
const/4 v0 , 0x0
invoke-direct { p0 , p1 , v0 , p2 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;L java/lang/Object ;) V
return-void
.end method
.method public constructor <init> ( L android/app/Dialog ;L androidx/appcompat/app/AppCompatCallback ;) V
.locals 2
invoke-virtual { p1 } , L android/app/Dialog ;-> getContext ( ) L android/content/Context ;
move-result-object v0
invoke-virtual { p1 } , L android/app/Dialog ;-> getWindow ( ) L android/view/Window ;
move-result-object v1
invoke-direct { p0 , v0 , v1 , p2 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;L java/lang/Object ;) V
return-void
.end method
.method public constructor <init> ( L android/content/Context ;L android/app/Activity ;L androidx/appcompat/app/AppCompatCallback ;) V
.locals 1
const/4 v0 , 0x0
invoke-direct { p0 , p1 , v0 , p3 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;L java/lang/Object ;) V
return-void
.end method
.method public constructor <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;) V
.locals 0
invoke-direct { p0 , p1 , p2 , p3 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;L java/lang/Object ;) V
return-void
.end method
.method public constructor <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;L java/lang/Object ;) V
.locals 2
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegate ;-> <init> ( ) V
const/4 v0 , 0x0
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFadeAnim : L androidx/core/view/ViewPropertyAnimatorCompat ;
const/4 v0 , 0x1
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHandleNativeActionModes : Z
const/16 v0 , - 0x64
iput v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
new-instance v1 , L androidx/appcompat/app/AppCompatDelegateImpl$2 ;
invoke-direct { v1 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$2 ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuRunnable : L java/lang/Runnable ;
iput-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
iput-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
iput-object p4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
iget p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
if-ne p1 , v0 , :cond_0
2020-07-08 16:44:49 +00:00
instance-of p1 , p4 , L android/app/Dialog ;
2020-05-17 12:40:10 +00:00
if-eqz p1 , :cond_0
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> tryUnwrapContext ( ) L androidx/appcompat/app/AppCompatActivity ;
move-result-object p1
if-eqz p1 , :cond_0
invoke-virtual { p1 } , L androidx/appcompat/app/AppCompatActivity ;-> getDelegate ( ) L androidx/appcompat/app/AppCompatDelegate ;
move-result-object p1
invoke-virtual { p1 } , L androidx/appcompat/app/AppCompatDelegate ;-> getLocalNightMode ( ) I
move-result p1
iput p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
:cond_0
iget p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
if-ne p1 , v0 , :cond_1
sget-object p1 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sLocalNightModes : L java/util/Map ;
iget-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
invoke-virtual { p3 } , L java/lang/Object ;-> getClass ( ) L java/lang/Class ;
move-result-object p3
invoke-interface { p1 , p3 } , L java/util/Map ;-> get ( L java/lang/Object ;) L java/lang/Object ;
move-result-object p1
check-cast p1 , L java/lang/Integer ;
if-eqz p1 , :cond_1
invoke-virtual { p1 } , L java/lang/Integer ;-> intValue ( ) I
move-result p1
iput p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
sget-object p1 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sLocalNightModes : L java/util/Map ;
iget-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
invoke-virtual { p3 } , L java/lang/Object ;-> getClass ( ) L java/lang/Class ;
move-result-object p3
invoke-interface { p1 , p3 } , L java/util/Map ;-> remove ( L java/lang/Object ;) L java/lang/Object ;
:cond_1
if-eqz p2 , :cond_2
invoke-direct { p0 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> attachToWindow ( L android/view/Window ;) V
:cond_2
invoke-static { } , L androidx/appcompat/widget/AppCompatDrawableManager ;-> preload ( ) V
return-void
.end method
.method private applyDayNight ( Z ) Z
.locals 2
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-eqz v0 , :cond_0
const/4 p1 , 0x0
return p1
:cond_0
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> calculateNightMode ( ) I
move-result v0
invoke-virtual { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mapNightMode ( I ) I
move-result v1
invoke-direct { p0 , v1 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> updateForNightMode ( IZ ) Z
move-result p1
if-nez v0 , :cond_1
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getAutoTimeNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
move-result-object v1
invoke-virtual { v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> setup ( ) V
goto :goto_0
:cond_1
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-eqz v1 , :cond_2
invoke-virtual { v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> cleanup ( ) V
:cond_2
:goto_0
const/4 v1 , 0x3
if-ne v0 , v1 , :cond_3
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getAutoBatteryNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
move-result-object v0
invoke-virtual { v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> setup ( ) V
goto :goto_1
:cond_3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-eqz v0 , :cond_4
invoke-virtual { v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> cleanup ( ) V
:cond_4
:goto_1
return p1
.end method
.method private applyFixedSizeWindow ( ) V
.locals 5
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
const v1 , 0x1020002
invoke-virtual { v0 , v1 } , L android/view/ViewGroup ;-> findViewById ( I ) L android/view/View ;
move-result-object v0
check-cast v0 , L androidx/appcompat/widget/ContentFrameLayout ;
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v1 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object v1
invoke-virtual { v1 } , L android/view/View ;-> getPaddingLeft ( ) I
move-result v2
invoke-virtual { v1 } , L android/view/View ;-> getPaddingTop ( ) I
move-result v3
invoke-virtual { v1 } , L android/view/View ;-> getPaddingRight ( ) I
move-result v4
invoke-virtual { v1 } , L android/view/View ;-> getPaddingBottom ( ) I
move-result v1
invoke-virtual { v0 , v2 , v3 , v4 , v1 } , L androidx/appcompat/widget/ContentFrameLayout ;-> setDecorPadding ( IIII ) V
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
sget-object v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme : [I
invoke-virtual { v1 , v2 } , L android/content/Context ;-> obtainStyledAttributes ( [I ) L android/content/res/TypedArray ;
move-result-object v1
sget v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowMinWidthMajor : I
invoke-virtual { v0 } , L androidx/appcompat/widget/ContentFrameLayout ;-> getMinWidthMajor ( ) L android/util/TypedValue ;
move-result-object v3
invoke-virtual { v1 , v2 , v3 } , L android/content/res/TypedArray ;-> getValue ( I L android/util/TypedValue ;) Z
sget v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowMinWidthMinor : I
invoke-virtual { v0 } , L androidx/appcompat/widget/ContentFrameLayout ;-> getMinWidthMinor ( ) L android/util/TypedValue ;
move-result-object v3
invoke-virtual { v1 , v2 , v3 } , L android/content/res/TypedArray ;-> getValue ( I L android/util/TypedValue ;) Z
sget v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowFixedWidthMajor : I
invoke-virtual { v1 , v2 } , L android/content/res/TypedArray ;-> hasValue ( I ) Z
move-result v2
if-eqz v2 , :cond_0
sget v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowFixedWidthMajor : I
invoke-virtual { v0 } , L androidx/appcompat/widget/ContentFrameLayout ;-> getFixedWidthMajor ( ) L android/util/TypedValue ;
move-result-object v3
invoke-virtual { v1 , v2 , v3 } , L android/content/res/TypedArray ;-> getValue ( I L android/util/TypedValue ;) Z
:cond_0
sget v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowFixedWidthMinor : I
invoke-virtual { v1 , v2 } , L android/content/res/TypedArray ;-> hasValue ( I ) Z
move-result v2
if-eqz v2 , :cond_1
sget v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowFixedWidthMinor : I
invoke-virtual { v0 } , L androidx/appcompat/widget/ContentFrameLayout ;-> getFixedWidthMinor ( ) L android/util/TypedValue ;
move-result-object v3
invoke-virtual { v1 , v2 , v3 } , L android/content/res/TypedArray ;-> getValue ( I L android/util/TypedValue ;) Z
:cond_1
sget v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowFixedHeightMajor : I
invoke-virtual { v1 , v2 } , L android/content/res/TypedArray ;-> hasValue ( I ) Z
move-result v2
if-eqz v2 , :cond_2
sget v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowFixedHeightMajor : I
invoke-virtual { v0 } , L androidx/appcompat/widget/ContentFrameLayout ;-> getFixedHeightMajor ( ) L android/util/TypedValue ;
move-result-object v3
invoke-virtual { v1 , v2 , v3 } , L android/content/res/TypedArray ;-> getValue ( I L android/util/TypedValue ;) Z
:cond_2
sget v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowFixedHeightMinor : I
invoke-virtual { v1 , v2 } , L android/content/res/TypedArray ;-> hasValue ( I ) Z
move-result v2
if-eqz v2 , :cond_3
sget v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowFixedHeightMinor : I
invoke-virtual { v0 } , L androidx/appcompat/widget/ContentFrameLayout ;-> getFixedHeightMinor ( ) L android/util/TypedValue ;
move-result-object v3
invoke-virtual { v1 , v2 , v3 } , L android/content/res/TypedArray ;-> getValue ( I L android/util/TypedValue ;) Z
:cond_3
invoke-virtual { v1 } , L android/content/res/TypedArray ;-> recycle ( ) V
invoke-virtual { v0 } , L android/widget/FrameLayout ;-> requestLayout ( ) V
return-void
.end method
.method private attachToWindow ( L android/view/Window ;) V
.locals 3
. param p1 # Landroid/view/Window;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
const-string v1 , "AppCompat has already installed itself into the Window"
if-nez v0 , :cond_2
invoke-virtual { p1 } , L android/view/Window ;-> getCallback ( ) L android/view/Window$Callback ;
move-result-object v0
instance-of v2 , v0 , L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
if-nez v2 , :cond_1
new-instance v1 , L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
invoke-direct { v1 , p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L android/view/Window$Callback ;) V
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2020-07-08 16:44:49 +00:00
invoke-virtual { p1 , v1 } , L android/view/Window ;-> setCallback ( L android/view/Window$Callback ;) V
2020-05-17 12:40:10 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
const/4 v1 , 0x0
sget-object v2 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sWindowBackgroundStyleable : [I
invoke-static { v0 , v1 , v2 } , L androidx/appcompat/widget/TintTypedArray ;-> obtainStyledAttributes ( L android/content/Context ;L android/util/AttributeSet ;[I ) L androidx/appcompat/widget/TintTypedArray ;
move-result-object v0
const/4 v1 , 0x0
invoke-virtual { v0 , v1 } , L androidx/appcompat/widget/TintTypedArray ;-> getDrawableIfKnown ( I ) L android/graphics/drawable/Drawable ;
move-result-object v1
if-eqz v1 , :cond_0
invoke-virtual { p1 , v1 } , L android/view/Window ;-> setBackgroundDrawable ( L android/graphics/drawable/Drawable ;) V
:cond_0
invoke-virtual { v0 } , L androidx/appcompat/widget/TintTypedArray ;-> recycle ( ) V
iput-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
return-void
:cond_1
new-instance p1 , L java/lang/IllegalStateException ;
invoke-direct { p1 , v1 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
:cond_2
new-instance p1 , L java/lang/IllegalStateException ;
invoke-direct { p1 , v1 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
.end method
.method private calculateNightMode ( ) I
.locals 2
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
const/16 v1 , - 0x64
if-eq v0 , v1 , :cond_0
goto :goto_0
:cond_0
invoke-static { } , L androidx/appcompat/app/AppCompatDelegate ;-> getDefaultNightMode ( ) I
move-result v0
:goto_0
return v0
.end method
.method private cleanupAutoManagers ( ) V
.locals 1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-eqz v0 , :cond_0
invoke-virtual { v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> cleanup ( ) V
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-eqz v0 , :cond_1
invoke-virtual { v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> cleanup ( ) V
:cond_1
return-void
.end method
.method private createSubDecor ( ) L android/view/ViewGroup ;
.locals 7
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
sget-object v1 , L androidx/appcompat/R$styleable ;-> AppCompatTheme : [I
invoke-virtual { v0 , v1 } , L android/content/Context ;-> obtainStyledAttributes ( [I ) L android/content/res/TypedArray ;
move-result-object v0
sget v1 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowActionBar : I
invoke-virtual { v0 , v1 } , L android/content/res/TypedArray ;-> hasValue ( I ) Z
move-result v1
if-eqz v1 , :cond_10
sget v1 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowNoTitle : I
const/4 v2 , 0x0
invoke-virtual { v0 , v1 , v2 } , L android/content/res/TypedArray ;-> getBoolean ( IZ ) Z
move-result v1
const/4 v3 , 0x1
if-eqz v1 , :cond_0
invoke-virtual { p0 , v3 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> requestWindowFeature ( I ) Z
goto :goto_0
:cond_0
sget v1 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowActionBar : I
invoke-virtual { v0 , v1 , v2 } , L android/content/res/TypedArray ;-> getBoolean ( IZ ) Z
move-result v1
if-eqz v1 , :cond_1
const/16 v1 , 0x6c
invoke-virtual { p0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> requestWindowFeature ( I ) Z
:cond_1
:goto_0
sget v1 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowActionBarOverlay : I
invoke-virtual { v0 , v1 , v2 } , L android/content/res/TypedArray ;-> getBoolean ( IZ ) Z
move-result v1
const/16 v4 , 0x6d
if-eqz v1 , :cond_2
invoke-virtual { p0 , v4 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> requestWindowFeature ( I ) Z
:cond_2
sget v1 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_windowActionModeOverlay : I
invoke-virtual { v0 , v1 , v2 } , L android/content/res/TypedArray ;-> getBoolean ( IZ ) Z
move-result v1
if-eqz v1 , :cond_3
const/16 v1 , 0xa
invoke-virtual { p0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> requestWindowFeature ( I ) Z
:cond_3
sget v1 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_android_windowIsFloating : I
invoke-virtual { v0 , v1 , v2 } , L android/content/res/TypedArray ;-> getBoolean ( IZ ) Z
move-result v1
iput-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsFloating : Z
invoke-virtual { v0 } , L android/content/res/TypedArray ;-> recycle ( ) V
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureWindow ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-static { v0 } , L android/view/LayoutInflater ;-> from ( L android/content/Context ;) L android/view/LayoutInflater ;
move-result-object v0
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindowNoTitle : Z
const/4 v5 , 0x0
if-nez v1 , :cond_9
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsFloating : Z
if-eqz v1 , :cond_4
sget v1 , L androidx/appcompat/R$layout ;-> abc_dialog_title_material : I
invoke-virtual { v0 , v1 , v5 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
goto/16 :goto_3
:cond_4
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
if-eqz v0 , :cond_8
new-instance v0 , L android/util/TypedValue ;
invoke-direct { v0 } , L android/util/TypedValue ;-> <init> ( ) V
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v1 } , L android/content/Context ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v1
sget v6 , L androidx/appcompat/R$attr ;-> actionBarTheme : I
invoke-virtual { v1 , v6 , v0 , v3 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
2020-07-08 16:44:49 +00:00
iget v1 , v0 , L android/util/TypedValue ;-> resourceId : I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1 , :cond_5
2020-05-17 12:40:10 +00:00
new-instance v1 , L androidx/appcompat/view/ContextThemeWrapper ;
iget-object v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2020-07-08 16:44:49 +00:00
iget v0 , v0 , L android/util/TypedValue ;-> resourceId : I
2020-05-17 12:40:10 +00:00
invoke-direct { v1 , v3 , v0 } , L androidx/appcompat/view/ContextThemeWrapper ;-> <init> ( L android/content/Context ;I ) V
goto :goto_1
:cond_5
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
:goto_1
invoke-static { v1 } , L android/view/LayoutInflater ;-> from ( L android/content/Context ;) L android/view/LayoutInflater ;
move-result-object v0
sget v1 , L androidx/appcompat/R$layout ;-> abc_screen_toolbar : I
invoke-virtual { v0 , v1 , v5 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
sget v1 , L androidx/appcompat/R$id ;-> decor_content_parent : I
invoke-virtual { v0 , v1 } , L android/view/ViewGroup ;-> findViewById ( I ) L android/view/View ;
move-result-object v1
check-cast v1 , L androidx/appcompat/widget/DecorContentParent ;
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getWindowCallback ( ) L android/view/Window$Callback ;
move-result-object v3
invoke-interface { v1 , v3 } , L androidx/appcompat/widget/DecorContentParent ;-> setWindowCallback ( L android/view/Window$Callback ;) V
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
if-eqz v1 , :cond_6
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { v1 , v4 } , L androidx/appcompat/widget/DecorContentParent ;-> initFeature ( I ) V
:cond_6
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureProgress : Z
if-eqz v1 , :cond_7
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
const/4 v3 , 0x2
invoke-interface { v1 , v3 } , L androidx/appcompat/widget/DecorContentParent ;-> initFeature ( I ) V
:cond_7
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureIndeterminateProgress : Z
if-eqz v1 , :cond_b
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
const/4 v3 , 0x5
invoke-interface { v1 , v3 } , L androidx/appcompat/widget/DecorContentParent ;-> initFeature ( I ) V
goto :goto_3
:cond_8
move-object v0 , v5
goto :goto_3
:cond_9
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionMode : Z
if-eqz v1 , :cond_a
sget v1 , L androidx/appcompat/R$layout ;-> abc_screen_simple_overlay_action_mode : I
invoke-virtual { v0 , v1 , v5 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
goto :goto_2
:cond_a
sget v1 , L androidx/appcompat/R$layout ;-> abc_screen_simple : I
invoke-virtual { v0 , v1 , v5 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
:goto_2
new-instance v1 , L androidx/appcompat/app/AppCompatDelegateImpl$3 ;
invoke-direct { v1 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$3 ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
invoke-static { v0 , v1 } , L androidx/core/view/ViewCompat ;-> setOnApplyWindowInsetsListener ( L android/view/View ;L androidx/core/view/OnApplyWindowInsetsListener ;) V
:cond_b
:goto_3
if-eqz v0 , :cond_f
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-nez v1 , :cond_c
sget v1 , L androidx/appcompat/R$id ;-> title : I
invoke-virtual { v0 , v1 } , L android/view/ViewGroup ;-> findViewById ( I ) L android/view/View ;
move-result-object v1
check-cast v1 , L android/widget/TextView ;
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTitleView : L android/widget/TextView ;
:cond_c
invoke-static { v0 } , L androidx/appcompat/widget/ViewUtils ;-> makeOptionalFitsSystemWindows ( L android/view/View ;) V
sget v1 , L androidx/appcompat/R$id ;-> action_bar_activity_content : I
invoke-virtual { v0 , v1 } , L android/view/ViewGroup ;-> findViewById ( I ) L android/view/View ;
move-result-object v1
check-cast v1 , L androidx/appcompat/widget/ContentFrameLayout ;
iget-object v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
const v4 , 0x1020002
invoke-virtual { v3 , v4 } , L android/view/Window ;-> findViewById ( I ) L android/view/View ;
move-result-object v3
check-cast v3 , L android/view/ViewGroup ;
if-eqz v3 , :cond_e
:goto_4
invoke-virtual { v3 } , L android/view/ViewGroup ;-> getChildCount ( ) I
move-result v6
if-lez v6 , :cond_d
invoke-virtual { v3 , v2 } , L android/view/ViewGroup ;-> getChildAt ( I ) L android/view/View ;
move-result-object v6
invoke-virtual { v3 , v2 } , L android/view/ViewGroup ;-> removeViewAt ( I ) V
invoke-virtual { v1 , v6 } , L android/widget/FrameLayout ;-> addView ( L android/view/View ;) V
goto :goto_4
:cond_d
const/4 v2 , - 0x1
invoke-virtual { v3 , v2 } , L android/view/ViewGroup ;-> setId ( I ) V
invoke-virtual { v1 , v4 } , L android/widget/FrameLayout ;-> setId ( I ) V
instance-of v2 , v3 , L android/widget/FrameLayout ;
if-eqz v2 , :cond_e
check-cast v3 , L android/widget/FrameLayout ;
invoke-virtual { v3 , v5 } , L android/widget/FrameLayout ;-> setForeground ( L android/graphics/drawable/Drawable ;) V
:cond_e
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v2 , v0 } , L android/view/Window ;-> setContentView ( L android/view/View ;) V
new-instance v2 , L androidx/appcompat/app/AppCompatDelegateImpl$5 ;
invoke-direct { v2 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$5 ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
invoke-virtual { v1 , v2 } , L androidx/appcompat/widget/ContentFrameLayout ;-> setAttachListener ( L androidx/appcompat/widget/ContentFrameLayout$OnAttachListener ;) V
return-object v0
:cond_f
new-instance v0 , L java/lang/IllegalArgumentException ;
const-string v1 , "AppCompat does not support the current theme features: { windowActionBar: "
2020-07-14 22:43:59 +00:00
invoke-static { v1 } , L f/e/b/a/a ;-> D ( L java/lang/String ;) L java/lang/StringBuilder ;
2020-05-17 12:40:10 +00:00
move-result-object v1
iget-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( Z ) L java/lang/StringBuilder ;
const-string v2 , ", windowActionBarOverlay: "
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
iget-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( Z ) L java/lang/StringBuilder ;
const-string v2 , ", android:windowIsFloating: "
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
iget-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsFloating : Z
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( Z ) L java/lang/StringBuilder ;
const-string v2 , ", windowActionModeOverlay: "
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
iget-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionMode : Z
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( Z ) L java/lang/StringBuilder ;
const-string v2 , ", windowNoTitle: "
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
iget-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindowNoTitle : Z
const-string v3 , " }"
2020-07-14 22:43:59 +00:00
invoke-static { v1 , v2 , v3 } , L f/e/b/a/a ;-> z ( L java/lang/StringBuilder ;Z L java/lang/String ;) L java/lang/String ;
2020-05-17 12:40:10 +00:00
move-result-object v1
invoke-direct { v0 , v1 } , L java/lang/IllegalArgumentException ;-> <init> ( L java/lang/String ;) V
throw v0
:cond_10
invoke-virtual { v0 } , L android/content/res/TypedArray ;-> recycle ( ) V
new-instance v0 , L java/lang/IllegalStateException ;
const-string v1 , "You need to use a Theme.AppCompat theme (or descendant) with this activity."
invoke-direct { v0 , v1 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw v0
.end method
.method private ensureSubDecor ( ) V
.locals 2
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecorInstalled : Z
if-nez v0 , :cond_4
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> createSubDecor ( ) L android/view/ViewGroup ;
move-result-object v0
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getTitle ( ) L java/lang/CharSequence ;
move-result-object v0
invoke-static { v0 } , L android/text/TextUtils ;-> isEmpty ( L java/lang/CharSequence ;) Z
move-result v1
if-nez v1 , :cond_2
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v1 , :cond_0
invoke-interface { v1 , v0 } , L androidx/appcompat/widget/DecorContentParent ;-> setWindowTitle ( L java/lang/CharSequence ;) V
goto :goto_0
:cond_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v1
if-eqz v1 , :cond_1
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v1
invoke-virtual { v1 , v0 } , L androidx/appcompat/app/ActionBar ;-> setWindowTitle ( L java/lang/CharSequence ;) V
goto :goto_0
:cond_1
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTitleView : L android/widget/TextView ;
if-eqz v1 , :cond_2
invoke-virtual { v1 , v0 } , L android/widget/TextView ;-> setText ( L java/lang/CharSequence ;) V
:cond_2
:goto_0
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyFixedSizeWindow ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
invoke-virtual { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onSubDecorInstalled ( L android/view/ViewGroup ;) V
const/4 v0 , 0x1
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecorInstalled : Z
const/4 v0 , 0x0
invoke-virtual { p0 , v0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object v0
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez v1 , :cond_4
if-eqz v0 , :cond_3
iget-object v0 , v0 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-nez v0 , :cond_4
:cond_3
const/16 v0 , 0x6c
invoke-direct { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> invalidatePanelMenu ( I ) V
:cond_4
return-void
.end method
.method private ensureWindow ( ) V
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
if-nez v0 , :cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v1 , v0 , L android/app/Activity ;
if-eqz v1 , :cond_0
check-cast v0 , L android/app/Activity ;
invoke-virtual { v0 } , L android/app/Activity ;-> getWindow ( ) L android/view/Window ;
move-result-object v0
invoke-direct { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> attachToWindow ( L android/view/Window ;) V
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
if-eqz v0 , :cond_1
return-void
:cond_1
new-instance v0 , L java/lang/IllegalStateException ;
const-string v1 , "We have not been given a Window"
invoke-direct { v0 , v1 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw v0
.end method
.method private getAutoBatteryNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-nez v0 , :cond_0
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager ;
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-direct { v0 , p0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L android/content/Context ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
return-object v0
.end method
.method private initWindowDecorActionBar ( ) V
.locals 3
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureSubDecor ( ) V
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
if-eqz v0 , :cond_3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
if-eqz v0 , :cond_0
goto :goto_1
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v1 , v0 , L android/app/Activity ;
if-eqz v1 , :cond_1
2020-07-08 16:44:49 +00:00
new-instance v0 , L androidx/appcompat/app/WindowDecorActionBar ;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
check-cast v1 , L android/app/Activity ;
2020-05-17 12:40:10 +00:00
iget-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
2020-07-08 16:44:49 +00:00
invoke-direct { v0 , v1 , v2 } , L androidx/appcompat/app/WindowDecorActionBar ;-> <init> ( L android/app/Activity ;Z ) V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_1
2020-07-08 16:44:49 +00:00
instance-of v0 , v0 , L android/app/Dialog ;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0 , :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v0 , L androidx/appcompat/app/WindowDecorActionBar ;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v1 , L android/app/Dialog ;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct { v0 , v1 } , L androidx/appcompat/app/WindowDecorActionBar ;-> <init> ( L android/app/Dialog ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
2020-05-17 12:40:10 +00:00
:cond_2
:goto_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
if-eqz v0 , :cond_3
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mEnableDefaultActionBarUp : Z
invoke-virtual { v0 , v1 } , L androidx/appcompat/app/ActionBar ;-> setDefaultDisplayHomeAsUpEnabled ( Z ) V
:cond_3
:goto_1
return-void
.end method
.method private initializePanelContent ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;) Z
.locals 3
iget-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
const/4 v1 , 0x1
if-eqz v0 , :cond_0
iput-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
return v1
:cond_0
iget-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
const/4 v2 , 0x0
if-nez v0 , :cond_1
return v2
:cond_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPanelMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;
if-nez v0 , :cond_2
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;
invoke-direct { v0 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPanelMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;
:cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPanelMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;
invoke-virtual { p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> getListMenuView ( L androidx/appcompat/view/menu/MenuPresenter$Callback ;) L androidx/appcompat/view/menu/MenuView ;
move-result-object v0
check-cast v0 , L android/view/View ;
iput-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
2020-07-08 16:44:49 +00:00
if-eqz v0 , :cond_3
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_3
const/4 v1 , 0x0
:goto_0
return v1
.end method
.method private initializePanelDecor ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;) Z
.locals 2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getActionBarThemedContext ( ) L android/content/Context ;
move-result-object v0
invoke-virtual { p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> setStyle ( L android/content/Context ;) V
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$ListMenuDecorView ;
iget-object v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> listPresenterContext : L android/content/Context ;
invoke-direct { v0 , p0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$ListMenuDecorView ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L android/content/Context ;) V
iput-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
const/16 v0 , 0x51
iput v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> gravity : I
const/4 p1 , 0x1
return p1
.end method
.method private initializePanelMenu ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;) Z
.locals 6
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
iget v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
const/4 v2 , 0x1
if-eqz v1 , :cond_0
const/16 v3 , 0x6c
if-ne v1 , v3 , :cond_4
:cond_0
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v1 , :cond_4
new-instance v1 , L android/util/TypedValue ;
invoke-direct { v1 } , L android/util/TypedValue ;-> <init> ( ) V
invoke-virtual { v0 } , L android/content/Context ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v3
sget v4 , L androidx/appcompat/R$attr ;-> actionBarTheme : I
invoke-virtual { v3 , v4 , v1 , v2 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
const/4 v4 , 0x0
iget v5 , v1 , L android/util/TypedValue ;-> resourceId : I
if-eqz v5 , :cond_1
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v4
invoke-virtual { v4 } , L android/content/res/Resources ;-> newTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v4
invoke-virtual { v4 , v3 } , L android/content/res/Resources$Theme ;-> setTo ( L android/content/res/Resources$Theme ;) V
iget v5 , v1 , L android/util/TypedValue ;-> resourceId : I
invoke-virtual { v4 , v5 , v2 } , L android/content/res/Resources$Theme ;-> applyStyle ( IZ ) V
sget v5 , L androidx/appcompat/R$attr ;-> actionBarWidgetTheme : I
invoke-virtual { v4 , v5 , v1 , v2 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
goto :goto_0
:cond_1
sget v5 , L androidx/appcompat/R$attr ;-> actionBarWidgetTheme : I
invoke-virtual { v3 , v5 , v1 , v2 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
:goto_0
iget v5 , v1 , L android/util/TypedValue ;-> resourceId : I
if-eqz v5 , :cond_3
if-nez v4 , :cond_2
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v4
invoke-virtual { v4 } , L android/content/res/Resources ;-> newTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v4
invoke-virtual { v4 , v3 } , L android/content/res/Resources$Theme ;-> setTo ( L android/content/res/Resources$Theme ;) V
:cond_2
iget v1 , v1 , L android/util/TypedValue ;-> resourceId : I
invoke-virtual { v4 , v1 , v2 } , L android/content/res/Resources$Theme ;-> applyStyle ( IZ ) V
:cond_3
if-eqz v4 , :cond_4
new-instance v1 , L androidx/appcompat/view/ContextThemeWrapper ;
const/4 v3 , 0x0
invoke-direct { v1 , v0 , v3 } , L androidx/appcompat/view/ContextThemeWrapper ;-> <init> ( L android/content/Context ;I ) V
invoke-virtual { v1 } , L androidx/appcompat/view/ContextThemeWrapper ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v0
invoke-virtual { v0 , v4 } , L android/content/res/Resources$Theme ;-> setTo ( L android/content/res/Resources$Theme ;) V
move-object v0 , v1
:cond_4
new-instance v1 , L androidx/appcompat/view/menu/MenuBuilder ;
invoke-direct { v1 , v0 } , L androidx/appcompat/view/menu/MenuBuilder ;-> <init> ( L android/content/Context ;) V
invoke-virtual { v1 , p0 } , L androidx/appcompat/view/menu/MenuBuilder ;-> setCallback ( L androidx/appcompat/view/menu/MenuBuilder$Callback ;) V
invoke-virtual { p1 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> setMenu ( L androidx/appcompat/view/menu/MenuBuilder ;) V
return v2
.end method
.method private invalidatePanelMenu ( I ) V
.locals 2
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuFeatures : I
const/4 v1 , 0x1
shl-int p1 , v1 , p1
or-int/2addr p1 , v0
iput p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuFeatures : I
iget-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuPosted : Z
if-nez p1 , :cond_0
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { p1 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object p1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuRunnable : L java/lang/Runnable ;
invoke-static { p1 , v0 } , L androidx/core/view/ViewCompat ;-> postOnAnimation ( L android/view/View ;L java/lang/Runnable ;) V
iput-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuPosted : Z
:cond_0
return-void
.end method
.method private isActivityManifestHandlingUiMode ( ) Z
.locals 6
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActivityHandlesUiModeChecked : Z
const/4 v1 , 0x1
if-nez v0 , :cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v0 , v0 , L android/app/Activity ;
if-eqz v0 , :cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v0 } , L android/content/Context ;-> getPackageManager ( ) L android/content/pm/PackageManager ;
move-result-object v0
const/4 v2 , 0x0
if-nez v0 , :cond_0
return v2
:cond_0
:try_start_0
new-instance v3 , L android/content/ComponentName ;
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
iget-object v5 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
invoke-virtual { v5 } , L java/lang/Object ;-> getClass ( ) L java/lang/Class ;
move-result-object v5
invoke-direct { v3 , v4 , v5 } , L android/content/ComponentName ;-> <init> ( L android/content/Context ;L java/lang/Class ;) V
invoke-virtual { v0 , v3 , v2 } , L android/content/pm/PackageManager ;-> getActivityInfo ( L android/content/ComponentName ;I ) L android/content/pm/ActivityInfo ;
move-result-object v0
if-eqz v0 , :cond_1
iget v0 , v0 , L android/content/pm/ActivityInfo ;-> configChanges : I
and-int/lit16 v0 , v0 , 0x200
if-eqz v0 , :cond_1
const/4 v0 , 0x1
goto :goto_0
:cond_1
const/4 v0 , 0x0
:goto_0
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActivityHandlesUiMode : Z
:try_end_0
.catch L android/content/pm/PackageManager$NameNotFoundException ; { :try_start_0 . . :try_end_0 } :catch_0
goto :goto_1
:catch_0
move-exception v0
const-string v3 , "AppCompatDelegate"
const-string v4 , "Exception while getting ActivityInfo"
invoke-static { v3 , v4 , v0 } , L android/util/Log ;-> d ( L java/lang/String ;L java/lang/String ;L java/lang/Throwable ;) I
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActivityHandlesUiMode : Z
:cond_2
:goto_1
iput-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActivityHandlesUiModeChecked : Z
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActivityHandlesUiMode : Z
return v0
.end method
.method private onKeyDownPanel ( I L android/view/KeyEvent ;) Z
.locals 1
invoke-virtual { p2 } , L android/view/KeyEvent ;-> getRepeatCount ( ) I
move-result v0
if-nez v0 , :cond_0
const/4 v0 , 0x1
invoke-virtual { p0 , p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p1
iget-boolean v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
if-nez v0 , :cond_0
invoke-direct { p0 , p1 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> preparePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) Z
move-result p1
return p1
:cond_0
const/4 p1 , 0x0
return p1
.end method
.method private onKeyUpPanel ( I L android/view/KeyEvent ;) Z
.locals 3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
const/4 v1 , 0x0
if-eqz v0 , :cond_0
return v1
:cond_0
const/4 v0 , 0x1
invoke-virtual { p0 , p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object v2
if-nez p1 , :cond_2
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz p1 , :cond_2
invoke-interface { p1 } , L androidx/appcompat/widget/DecorContentParent ;-> canShowOverflowMenu ( ) Z
move-result p1
if-eqz p1 , :cond_2
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-static { p1 } , L android/view/ViewConfiguration ;-> get ( L android/content/Context ;) L android/view/ViewConfiguration ;
move-result-object p1
invoke-virtual { p1 } , L android/view/ViewConfiguration ;-> hasPermanentMenuKey ( ) Z
move-result p1
if-nez p1 , :cond_2
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { p1 } , L androidx/appcompat/widget/DecorContentParent ;-> isOverflowMenuShowing ( ) Z
move-result p1
if-nez p1 , :cond_1
iget-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez p1 , :cond_5
invoke-direct { p0 , v2 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> preparePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) Z
move-result p1
if-eqz p1 , :cond_5
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { p1 } , L androidx/appcompat/widget/DecorContentParent ;-> showOverflowMenu ( ) Z
2020-07-08 16:44:49 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
goto :goto_2
:cond_1
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { p1 } , L androidx/appcompat/widget/DecorContentParent ;-> hideOverflowMenu ( ) Z
2020-07-08 16:44:49 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
goto :goto_2
:cond_2
iget-boolean p1 , v2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
if-nez p1 , :cond_6
iget-boolean p1 , v2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isHandled : Z
if-eqz p1 , :cond_3
goto :goto_1
:cond_3
iget-boolean p1 , v2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isPrepared : Z
if-eqz p1 , :cond_5
iget-boolean p1 , v2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshMenuContent : Z
if-eqz p1 , :cond_4
iput-boolean v1 , v2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isPrepared : Z
invoke-direct { p0 , v2 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> preparePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) Z
move-result p1
goto :goto_0
:cond_4
const/4 p1 , 0x1
:goto_0
if-eqz p1 , :cond_5
invoke-direct { p0 , v2 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> openPanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) V
goto :goto_2
:cond_5
2020-07-08 16:44:49 +00:00
const/4 v0 , 0x0
2020-05-17 12:40:10 +00:00
goto :goto_2
:cond_6
:goto_1
iget-boolean p1 , v2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
invoke-virtual { p0 , v2 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
2020-07-08 16:44:49 +00:00
move v0 , p1
2020-05-17 12:40:10 +00:00
:goto_2
2020-07-08 16:44:49 +00:00
if-eqz v0 , :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string p2 , "audio"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual { p1 , p2 } , L android/content/Context ;-> getSystemService ( L java/lang/String ;) L java/lang/Object ;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p1 , L android/media/AudioManager ;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p1 , :cond_7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual { p1 , v1 } , L android/media/AudioManager ;-> playSoundEffect ( I ) V
2020-05-17 12:40:10 +00:00
goto :goto_3
:cond_7
2020-07-08 16:44:49 +00:00
const-string p1 , "AppCompatDelegate"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string p2 , "Couldn\'t get audio manager"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static { p1 , p2 } , L android/util/Log ;-> w ( L java/lang/String ;L java/lang/String ;) I
2020-05-17 12:40:10 +00:00
:cond_8
:goto_3
2020-07-08 16:44:49 +00:00
return v0
2020-05-17 12:40:10 +00:00
.end method
.method private openPanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) V
.locals 13
iget-boolean v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
if-nez v0 , :cond_f
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-eqz v0 , :cond_0
goto/16 :goto_3
:cond_0
iget v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
const/4 v1 , 0x0
const/4 v2 , 0x1
if-nez v0 , :cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v0
invoke-virtual { v0 } , L android/content/res/Resources ;-> getConfiguration ( ) L android/content/res/Configuration ;
move-result-object v0
iget v0 , v0 , L android/content/res/Configuration ;-> screenLayout : I
and-int/lit8 v0 , v0 , 0xf
const/4 v3 , 0x4
if-ne v0 , v3 , :cond_1
const/4 v0 , 0x1
goto :goto_0
:cond_1
const/4 v0 , 0x0
:goto_0
if-eqz v0 , :cond_2
return-void
:cond_2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getWindowCallback ( ) L android/view/Window$Callback ;
move-result-object v0
if-eqz v0 , :cond_3
iget v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-interface { v0 , v3 , v4 } , L android/view/Window$Callback ;-> onMenuOpened ( I L android/view/Menu ;) Z
move-result v0
if-nez v0 , :cond_3
invoke-virtual { p0 , p1 , v2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
return-void
:cond_3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2020-07-20 19:00:44 +00:00
const-string/jumbo v3 , "window"
2020-05-17 12:40:10 +00:00
invoke-virtual { v0 , v3 } , L android/content/Context ;-> getSystemService ( L java/lang/String ;) L java/lang/Object ;
move-result-object v0
check-cast v0 , L android/view/WindowManager ;
if-nez v0 , :cond_4
return-void
:cond_4
invoke-direct { p0 , p1 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> preparePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) Z
move-result p2
if-nez p2 , :cond_5
return-void
:cond_5
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
const/4 v3 , - 0x1
const/4 v4 , - 0x2
if-eqz p2 , :cond_7
iget-boolean p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshDecorView : Z
if-eqz p2 , :cond_6
goto :goto_1
:cond_6
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
if-eqz p2 , :cond_e
invoke-virtual { p2 } , L android/view/View ;-> getLayoutParams ( ) L android/view/ViewGroup$LayoutParams ;
move-result-object p2
if-eqz p2 , :cond_e
iget p2 , p2 , L android/view/ViewGroup$LayoutParams ;-> width : I
if-ne p2 , v3 , :cond_e
const/4 v6 , - 0x1
goto :goto_2
:cond_7
:goto_1
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
if-nez p2 , :cond_9
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> initializePanelDecor ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;) Z
move-result p2
if-eqz p2 , :cond_8
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
if-nez p2 , :cond_a
:cond_8
return-void
:cond_9
iget-boolean v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshDecorView : Z
if-eqz v3 , :cond_a
invoke-virtual { p2 } , L android/view/ViewGroup ;-> getChildCount ( ) I
move-result p2
if-lez p2 , :cond_a
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
invoke-virtual { p2 } , L android/view/ViewGroup ;-> removeAllViews ( ) V
:cond_a
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> initializePanelContent ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;) Z
move-result p2
if-eqz p2 , :cond_f
invoke-virtual { p1 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> hasPanelItems ( ) Z
move-result p2
if-nez p2 , :cond_b
goto :goto_3
:cond_b
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { p2 } , L android/view/View ;-> getLayoutParams ( ) L android/view/ViewGroup$LayoutParams ;
move-result-object p2
if-nez p2 , :cond_c
new-instance p2 , L android/view/ViewGroup$LayoutParams ;
invoke-direct { p2 , v4 , v4 } , L android/view/ViewGroup$LayoutParams ;-> <init> ( II ) V
:cond_c
iget v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> background : I
iget-object v5 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
invoke-virtual { v5 , v3 } , L android/view/ViewGroup ;-> setBackgroundResource ( I ) V
iget-object v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { v3 } , L android/view/View ;-> getParent ( ) L android/view/ViewParent ;
move-result-object v3
instance-of v5 , v3 , L android/view/ViewGroup ;
if-eqz v5 , :cond_d
check-cast v3 , L android/view/ViewGroup ;
iget-object v5 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { v3 , v5 } , L android/view/ViewGroup ;-> removeView ( L android/view/View ;) V
:cond_d
iget-object v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
iget-object v5 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { v3 , v5 , p2 } , L android/view/ViewGroup ;-> addView ( L android/view/View ;L android/view/ViewGroup$LayoutParams ;) V
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { p2 } , L android/view/View ;-> hasFocus ( ) Z
move-result p2
if-nez p2 , :cond_e
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { p2 } , L android/view/View ;-> requestFocus ( ) Z
:cond_e
const/4 v6 , - 0x2
:goto_2
iput-boolean v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isHandled : Z
new-instance p2 , L android/view/WindowManager$LayoutParams ;
const/4 v7 , - 0x2
iget v8 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> x : I
iget v9 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> y : I
const/16 v10 , 0x3ea
const/high16 v11 , 0x820000
const/4 v12 , - 0x3
move-object v5 , p2
invoke-direct/range { v5 . . v12 } , L android/view/WindowManager$LayoutParams ;-> <init> ( IIIIIII ) V
iget v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> gravity : I
iput v1 , p2 , L android/view/WindowManager$LayoutParams ;-> gravity : I
iget v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> windowAnimations : I
iput v1 , p2 , L android/view/WindowManager$LayoutParams ;-> windowAnimations : I
iget-object v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
invoke-interface { v0 , v1 , p2 } , L android/view/WindowManager ;-> addView ( L android/view/View ;L android/view/ViewGroup$LayoutParams ;) V
iput-boolean v2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
:cond_f
:goto_3
return-void
.end method
.method private performPanelShortcut ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;I L android/view/KeyEvent ;I ) Z
.locals 2
invoke-virtual { p3 } , L android/view/KeyEvent ;-> isSystem ( ) Z
move-result v0
const/4 v1 , 0x0
if-eqz v0 , :cond_0
return v1
:cond_0
iget-boolean v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isPrepared : Z
if-nez v0 , :cond_1
invoke-direct { p0 , p1 , p3 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> preparePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) Z
move-result v0
if-eqz v0 , :cond_2
:cond_1
iget-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-eqz v0 , :cond_2
invoke-virtual { v0 , p2 , p3 , p4 } , L androidx/appcompat/view/menu/MenuBuilder ;-> performShortcut ( I L android/view/KeyEvent ;I ) Z
move-result v1
:cond_2
if-eqz v1 , :cond_3
const/4 p2 , 0x1
and-int/lit8 p3 , p4 , 0x1
if-nez p3 , :cond_3
iget-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-nez p3 , :cond_3
invoke-virtual { p0 , p1 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
:cond_3
return v1
.end method
.method private preparePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) Z
.locals 8
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
const/4 v1 , 0x0
if-eqz v0 , :cond_0
return v1
:cond_0
iget-boolean v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isPrepared : Z
const/4 v2 , 0x1
if-eqz v0 , :cond_1
return v2
:cond_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPreparedPanel : L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
if-eqz v0 , :cond_2
if-eq v0 , p1 , :cond_2
invoke-virtual { p0 , v0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
:cond_2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getWindowCallback ( ) L android/view/Window$Callback ;
move-result-object v0
if-eqz v0 , :cond_3
iget v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
invoke-interface { v0 , v3 } , L android/view/Window$Callback ;-> onCreatePanelView ( I ) L android/view/View ;
move-result-object v3
iput-object v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
:cond_3
iget v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
if-eqz v3 , :cond_5
const/16 v4 , 0x6c
if-ne v3 , v4 , :cond_4
goto :goto_0
:cond_4
const/4 v3 , 0x0
goto :goto_1
:cond_5
:goto_0
const/4 v3 , 0x1
:goto_1
if-eqz v3 , :cond_6
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v4 , :cond_6
invoke-interface { v4 } , L androidx/appcompat/widget/DecorContentParent ;-> setMenuPrepared ( ) V
:cond_6
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
if-nez v4 , :cond_15
if-eqz v3 , :cond_7
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v4
instance-of v4 , v4 , L androidx/appcompat/app/ToolbarActionBar ;
if-nez v4 , :cond_15
:cond_7
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
const/4 v5 , 0x0
if-eqz v4 , :cond_8
iget-boolean v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshMenuContent : Z
if-eqz v4 , :cond_f
:cond_8
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-nez v4 , :cond_a
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> initializePanelMenu ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;) Z
move-result v4
if-eqz v4 , :cond_9
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-nez v4 , :cond_a
:cond_9
return v1
:cond_a
if-eqz v3 , :cond_c
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v4 , :cond_c
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
if-nez v4 , :cond_b
new-instance v4 , L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
invoke-direct { v4 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
iput-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
:cond_b
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
iget-object v6 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
iget-object v7 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
invoke-interface { v4 , v6 , v7 } , L androidx/appcompat/widget/DecorContentParent ;-> setMenu ( L android/view/Menu ;L androidx/appcompat/view/menu/MenuPresenter$Callback ;) V
:cond_c
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { v4 } , L androidx/appcompat/view/menu/MenuBuilder ;-> stopDispatchingItemsChanged ( ) V
iget v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
iget-object v6 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-interface { v0 , v4 , v6 } , L android/view/Window$Callback ;-> onCreatePanelMenu ( I L android/view/Menu ;) Z
move-result v4
if-nez v4 , :cond_e
invoke-virtual { p1 , v5 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> setMenu ( L androidx/appcompat/view/menu/MenuBuilder ;) V
if-eqz v3 , :cond_d
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz p1 , :cond_d
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
invoke-interface { p1 , v5 , p2 } , L androidx/appcompat/widget/DecorContentParent ;-> setMenu ( L android/view/Menu ;L androidx/appcompat/view/menu/MenuPresenter$Callback ;) V
:cond_d
return v1
:cond_e
iput-boolean v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshMenuContent : Z
:cond_f
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { v4 } , L androidx/appcompat/view/menu/MenuBuilder ;-> stopDispatchingItemsChanged ( ) V
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> frozenActionViewState : L android/os/Bundle ;
if-eqz v4 , :cond_10
iget-object v6 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { v6 , v4 } , L androidx/appcompat/view/menu/MenuBuilder ;-> restoreActionViewStates ( L android/os/Bundle ;) V
iput-object v5 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> frozenActionViewState : L android/os/Bundle ;
:cond_10
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
iget-object v6 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-interface { v0 , v1 , v4 , v6 } , L android/view/Window$Callback ;-> onPreparePanel ( I L android/view/View ;L android/view/Menu ;) Z
move-result v0
if-nez v0 , :cond_12
if-eqz v3 , :cond_11
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz p2 , :cond_11
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
invoke-interface { p2 , v5 , v0 } , L androidx/appcompat/widget/DecorContentParent ;-> setMenu ( L android/view/Menu ;L androidx/appcompat/view/menu/MenuPresenter$Callback ;) V
:cond_11
iget-object p1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { p1 } , L androidx/appcompat/view/menu/MenuBuilder ;-> startDispatchingItemsChanged ( ) V
return v1
:cond_12
if-eqz p2 , :cond_13
invoke-virtual { p2 } , L android/view/KeyEvent ;-> getDeviceId ( ) I
move-result p2
goto :goto_2
:cond_13
const/4 p2 , - 0x1
:goto_2
invoke-static { p2 } , L android/view/KeyCharacterMap ;-> load ( I ) L android/view/KeyCharacterMap ;
move-result-object p2
invoke-virtual { p2 } , L android/view/KeyCharacterMap ;-> getKeyboardType ( ) I
move-result p2
if-eq p2 , v2 , :cond_14
const/4 p2 , 0x1
goto :goto_3
:cond_14
const/4 p2 , 0x0
:goto_3
iput-boolean p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> qwertyMode : Z
2020-07-08 16:44:49 +00:00
iget-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual { v0 , p2 } , L androidx/appcompat/view/menu/MenuBuilder ;-> setQwertyMode ( Z ) V
2020-05-17 12:40:10 +00:00
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { p2 } , L androidx/appcompat/view/menu/MenuBuilder ;-> startDispatchingItemsChanged ( ) V
:cond_15
iput-boolean v2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isPrepared : Z
iput-boolean v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isHandled : Z
iput-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPreparedPanel : L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
return v2
.end method
.method private reopenMenu ( L androidx/appcompat/view/menu/MenuBuilder ;Z ) V
.locals 4
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
const/4 v0 , 0x1
const/4 v1 , 0x0
if-eqz p1 , :cond_5
invoke-interface { p1 } , L androidx/appcompat/widget/DecorContentParent ;-> canShowOverflowMenu ( ) Z
move-result p1
if-eqz p1 , :cond_5
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-static { p1 } , L android/view/ViewConfiguration ;-> get ( L android/content/Context ;) L android/view/ViewConfiguration ;
move-result-object p1
invoke-virtual { p1 } , L android/view/ViewConfiguration ;-> hasPermanentMenuKey ( ) Z
move-result p1
if-eqz p1 , :cond_0
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { p1 } , L androidx/appcompat/widget/DecorContentParent ;-> isOverflowMenuShowPending ( ) Z
move-result p1
if-eqz p1 , :cond_5
:cond_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getWindowCallback ( ) L android/view/Window$Callback ;
move-result-object p1
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { v2 } , L androidx/appcompat/widget/DecorContentParent ;-> isOverflowMenuShowing ( ) Z
move-result v2
const/16 v3 , 0x6c
if-eqz v2 , :cond_2
if-nez p2 , :cond_1
goto :goto_0
:cond_1
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { p2 } , L androidx/appcompat/widget/DecorContentParent ;-> hideOverflowMenu ( ) Z
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez p2 , :cond_4
invoke-virtual { p0 , v1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p2
iget-object p2 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-interface { p1 , v3 , p2 } , L android/view/Window$Callback ;-> onPanelClosed ( I L android/view/Menu ;) V
goto :goto_1
:cond_2
:goto_0
if-eqz p1 , :cond_4
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez p2 , :cond_4
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuPosted : Z
if-eqz p2 , :cond_3
iget p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuFeatures : I
and-int/2addr p2 , v0
if-eqz p2 , :cond_3
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { p2 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object p2
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuRunnable : L java/lang/Runnable ;
invoke-virtual { p2 , v2 } , L android/view/View ;-> removeCallbacks ( L java/lang/Runnable ;) Z
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuRunnable : L java/lang/Runnable ;
invoke-interface { p2 } , L java/lang/Runnable ;-> run ( ) V
:cond_3
invoke-virtual { p0 , v1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p2
iget-object v0 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-eqz v0 , :cond_4
iget-boolean v2 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshMenuContent : Z
if-nez v2 , :cond_4
iget-object v2 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
invoke-interface { p1 , v1 , v2 , v0 } , L android/view/Window$Callback ;-> onPreparePanel ( I L android/view/View ;L android/view/Menu ;) Z
move-result v0
if-eqz v0 , :cond_4
iget-object p2 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-interface { p1 , v3 , p2 } , L android/view/Window$Callback ;-> onMenuOpened ( I L android/view/Menu ;) Z
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { p1 } , L androidx/appcompat/widget/DecorContentParent ;-> showOverflowMenu ( ) Z
:cond_4
:goto_1
return-void
:cond_5
invoke-virtual { p0 , v1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p1
iput-boolean v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshDecorView : Z
invoke-virtual { p0 , p1 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
const/4 p2 , 0x0
invoke-direct { p0 , p1 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> openPanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) V
return-void
.end method
.method private sanitizeWindowFeatureId ( I ) I
.locals 2
const-string v0 , "AppCompatDelegate"
const/16 v1 , 0x8
if-ne p1 , v1 , :cond_0
const-string p1 , "You should now use the AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR id when requesting this feature."
invoke-static { v0 , p1 } , L android/util/Log ;-> i ( L java/lang/String ;L java/lang/String ;) I
const/16 p1 , 0x6c
return p1
:cond_0
const/16 v1 , 0x9
if-ne p1 , v1 , :cond_1
const-string p1 , "You should now use the AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR_OVERLAY id when requesting this feature."
invoke-static { v0 , p1 } , L android/util/Log ;-> i ( L java/lang/String ;L java/lang/String ;) I
const/16 p1 , 0x6d
:cond_1
return p1
.end method
.method private shouldInheritContext ( L android/view/ViewParent ;) Z
.locals 3
const/4 v0 , 0x0
if-nez p1 , :cond_0
return v0
:cond_0
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v1 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object v1
:goto_0
if-nez p1 , :cond_1
const/4 p1 , 0x1
return p1
:cond_1
if-eq p1 , v1 , :cond_3
instance-of v2 , p1 , L android/view/View ;
if-eqz v2 , :cond_3
move-object v2 , p1
check-cast v2 , L android/view/View ;
invoke-static { v2 } , L androidx/core/view/ViewCompat ;-> isAttachedToWindow ( L android/view/View ;) Z
move-result v2
if-eqz v2 , :cond_2
goto :goto_1
:cond_2
invoke-interface { p1 } , L android/view/ViewParent ;-> getParent ( ) L android/view/ViewParent ;
move-result-object p1
goto :goto_0
:cond_3
:goto_1
return v0
.end method
.method private throwFeatureRequestIfSubDecorInstalled ( ) V
.locals 2
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecorInstalled : Z
if-nez v0 , :cond_0
return-void
:cond_0
new-instance v0 , L android/util/AndroidRuntimeException ;
const-string v1 , "Window feature must be requested before adding content"
invoke-direct { v0 , v1 } , L android/util/AndroidRuntimeException ;-> <init> ( L java/lang/String ;) V
throw v0
.end method
.method private tryUnwrapContext ( ) L androidx/appcompat/app/AppCompatActivity ;
.locals 3
.annotation build L androidx/annotation/Nullable ;
.end annotation
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
:goto_0
const/4 v1 , 0x0
if-eqz v0 , :cond_1
instance-of v2 , v0 , L androidx/appcompat/app/AppCompatActivity ;
if-eqz v2 , :cond_0
check-cast v0 , L androidx/appcompat/app/AppCompatActivity ;
return-object v0
:cond_0
instance-of v2 , v0 , L android/content/ContextWrapper ;
if-eqz v2 , :cond_1
check-cast v0 , L android/content/ContextWrapper ;
invoke-virtual { v0 } , L android/content/ContextWrapper ;-> getBaseContext ( ) L android/content/Context ;
move-result-object v0
goto :goto_0
:cond_1
return-object v1
.end method
.method private updateForNightMode ( IZ ) Z
.locals 7
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v0 } , L android/content/Context ;-> getApplicationContext ( ) L android/content/Context ;
move-result-object v0
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v0
invoke-virtual { v0 } , L android/content/res/Resources ;-> getConfiguration ( ) L android/content/res/Configuration ;
move-result-object v0
iget v0 , v0 , L android/content/res/Configuration ;-> uiMode : I
and-int/lit8 v0 , v0 , 0x30
const/4 v1 , 0x1
if-eq p1 , v1 , :cond_1
const/4 v2 , 0x2
if-eq p1 , v2 , :cond_0
move v2 , v0
goto :goto_0
:cond_0
const/16 v2 , 0x20
goto :goto_0
:cond_1
const/16 v2 , 0x10
:goto_0
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> isActivityManifestHandlingUiMode ( ) Z
move-result v3
sget-boolean v4 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sAlwaysOverrideConfiguration : Z
const/4 v5 , 0x0
if-nez v4 , :cond_2
if-eq v2 , v0 , :cond_3
:cond_2
if-nez v3 , :cond_3
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mBaseContextAttached : Z
if-nez v0 , :cond_3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v0 , v0 , L android/view/ContextThemeWrapper ;
if-eqz v0 , :cond_3
new-instance v0 , L android/content/res/Configuration ;
invoke-direct { v0 } , L android/content/res/Configuration ;-> <init> ( ) V
iget v4 , v0 , L android/content/res/Configuration ;-> uiMode : I
and-int/lit8 v4 , v4 , - 0x31
or-int/2addr v4 , v2
iput v4 , v0 , L android/content/res/Configuration ;-> uiMode : I
:try_start_0
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
check-cast v4 , L android/view/ContextThemeWrapper ;
invoke-virtual { v4 , v0 } , L android/view/ContextThemeWrapper ;-> applyOverrideConfiguration ( L android/content/res/Configuration ;) V
:try_end_0
.catch L java/lang/IllegalStateException ; { :try_start_0 . . :try_end_0 } :catch_0
const/4 v5 , 0x1
goto :goto_1
:catch_0
move-exception v0
const-string v4 , "AppCompatDelegate"
const-string v6 , "updateForNightMode. Calling applyOverrideConfiguration() failed with an exception. Will fall back to using Resources.updateConfiguration()"
invoke-static { v4 , v6 , v0 } , L android/util/Log ;-> e ( L java/lang/String ;L java/lang/String ;L java/lang/Throwable ;) I
:cond_3
:goto_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v0
invoke-virtual { v0 } , L android/content/res/Resources ;-> getConfiguration ( ) L android/content/res/Configuration ;
move-result-object v0
iget v0 , v0 , L android/content/res/Configuration ;-> uiMode : I
and-int/lit8 v0 , v0 , 0x30
if-nez v5 , :cond_4
if-eq v0 , v2 , :cond_4
if-eqz p2 , :cond_4
if-nez v3 , :cond_4
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mBaseContextAttached : Z
if-eqz p2 , :cond_4
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v4 , p2 , L android/app/Activity ;
if-eqz v4 , :cond_4
check-cast p2 , L android/app/Activity ;
invoke-static { p2 } , L androidx/core/app/ActivityCompat ;-> recreate ( L android/app/Activity ;) V
const/4 v5 , 0x1
:cond_4
if-nez v5 , :cond_5
if-eq v0 , v2 , :cond_5
invoke-direct { p0 , v2 , v3 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> updateResourcesConfigurationForNightMode ( IZ ) V
goto :goto_2
:cond_5
move v1 , v5
:goto_2
if-eqz v1 , :cond_6
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v0 , p2 , L androidx/appcompat/app/AppCompatActivity ;
if-eqz v0 , :cond_6
check-cast p2 , L androidx/appcompat/app/AppCompatActivity ;
invoke-virtual { p2 , p1 } , L androidx/appcompat/app/AppCompatActivity ;-> onNightModeChanged ( I ) V
:cond_6
return v1
.end method
.method private updateResourcesConfigurationForNightMode ( IZ ) V
.locals 3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v0
new-instance v1 , L android/content/res/Configuration ;
invoke-virtual { v0 } , L android/content/res/Resources ;-> getConfiguration ( ) L android/content/res/Configuration ;
move-result-object v2
invoke-direct { v1 , v2 } , L android/content/res/Configuration ;-> <init> ( L android/content/res/Configuration ;) V
invoke-virtual { v0 } , L android/content/res/Resources ;-> getConfiguration ( ) L android/content/res/Configuration ;
move-result-object v2
iget v2 , v2 , L android/content/res/Configuration ;-> uiMode : I
and-int/lit8 v2 , v2 , - 0x31
or-int/2addr p1 , v2
iput p1 , v1 , L android/content/res/Configuration ;-> uiMode : I
const/4 p1 , 0x0
invoke-virtual { v0 , v1 , p1 } , L android/content/res/Resources ;-> updateConfiguration ( L android/content/res/Configuration ;L android/util/DisplayMetrics ;) V
sget p1 , L android/os/Build$VERSION ;-> SDK_INT : I
const/16 v2 , 0x1a
if-ge p1 , v2 , :cond_0
invoke-static { v0 } , L androidx/appcompat/app/ResourcesFlusher ;-> flush ( L android/content/res/Resources ;) V
:cond_0
iget p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mThemeResId : I
if-eqz p1 , :cond_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v0 , p1 } , L android/content/Context ;-> setTheme ( I ) V
sget p1 , L android/os/Build$VERSION ;-> SDK_INT : I
const/16 v0 , 0x17
if-lt p1 , v0 , :cond_1
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { p1 } , L android/content/Context ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object p1
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mThemeResId : I
const/4 v2 , 0x1
invoke-virtual { p1 , v0 , v2 } , L android/content/res/Resources$Theme ;-> applyStyle ( IZ ) V
:cond_1
if-eqz p2 , :cond_3
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of p2 , p1 , L android/app/Activity ;
if-eqz p2 , :cond_3
check-cast p1 , L android/app/Activity ;
instance-of p2 , p1 , L androidx/lifecycle/LifecycleOwner ;
if-eqz p2 , :cond_2
move-object p2 , p1
check-cast p2 , L androidx/lifecycle/LifecycleOwner ;
invoke-interface { p2 } , L androidx/lifecycle/LifecycleOwner ;-> getLifecycle ( ) L androidx/lifecycle/Lifecycle ;
move-result-object p2
invoke-virtual { p2 } , L androidx/lifecycle/Lifecycle ;-> getCurrentState ( ) L androidx/lifecycle/Lifecycle$State ;
move-result-object p2
sget-object v0 , L androidx/lifecycle/Lifecycle$State ;-> STARTED : L androidx/lifecycle/Lifecycle$State ;
invoke-virtual { p2 , v0 } , L androidx/lifecycle/Lifecycle$State ;-> isAtLeast ( L androidx/lifecycle/Lifecycle$State ;) Z
move-result p2
if-eqz p2 , :cond_3
invoke-virtual { p1 , v1 } , L android/app/Activity ;-> onConfigurationChanged ( L android/content/res/Configuration ;) V
goto :goto_0
:cond_2
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStarted : Z
if-eqz p2 , :cond_3
invoke-virtual { p1 , v1 } , L android/app/Activity ;-> onConfigurationChanged ( L android/content/res/Configuration ;) V
:cond_3
:goto_0
return-void
.end method
# virtual methods
.method public addContentView ( L android/view/View ;L android/view/ViewGroup$LayoutParams ;) V
.locals 2
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureSubDecor ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
const v1 , 0x1020002
invoke-virtual { v0 , v1 } , L android/view/ViewGroup ;-> findViewById ( I ) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
invoke-virtual { v0 , p1 , p2 } , L android/view/ViewGroup ;-> addView ( L android/view/View ;L android/view/ViewGroup$LayoutParams ;) V
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
invoke-virtual { p1 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
move-result-object p1
invoke-interface { p1 } , L android/view/Window$Callback ;-> onContentChanged ( ) V
return-void
.end method
.method public applyDayNight ( ) Z
.locals 1
const/4 v0 , 0x1
invoke-direct { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( Z ) Z
move-result v0
return v0
.end method
.method public attachBaseContext ( L android/content/Context ;) V
.locals 0
const/4 p1 , 0x0
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( Z ) Z
const/4 p1 , 0x1
iput-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mBaseContextAttached : Z
return-void
.end method
.method public callOnPanelClosed ( I L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/Menu ;) V
.locals 2
if-nez p3 , :cond_1
if-nez p2 , :cond_0
if-ltz p1 , :cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPanels : [ L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
array-length v1 , v0
if-ge p1 , v1 , :cond_0
aget-object p2 , v0 , p1
:cond_0
if-eqz p2 , :cond_1
iget-object p3 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
:cond_1
if-eqz p2 , :cond_2
iget-boolean p2 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
if-nez p2 , :cond_2
return-void
:cond_2
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez p2 , :cond_3
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
invoke-virtual { p2 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
move-result-object p2
invoke-interface { p2 , p1 , p3 } , L android/view/Window$Callback ;-> onPanelClosed ( I L android/view/Menu ;) V
:cond_3
return-void
.end method
.method public checkCloseActionMenu ( L androidx/appcompat/view/menu/MenuBuilder ;) V
.locals 2
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mClosingActionMenu : Z
if-eqz v0 , :cond_0
return-void
:cond_0
const/4 v0 , 0x1
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mClosingActionMenu : Z
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { v0 } , L androidx/appcompat/widget/DecorContentParent ;-> dismissPopups ( ) V
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getWindowCallback ( ) L android/view/Window$Callback ;
move-result-object v0
if-eqz v0 , :cond_1
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez v1 , :cond_1
const/16 v1 , 0x6c
invoke-interface { v0 , v1 , p1 } , L android/view/Window$Callback ;-> onPanelClosed ( I L android/view/Menu ;) V
:cond_1
const/4 p1 , 0x0
iput-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mClosingActionMenu : Z
return-void
.end method
.method public closePanel ( I ) V
.locals 1
const/4 v0 , 0x1
invoke-virtual { p0 , p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p1
invoke-virtual { p0 , p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
return-void
.end method
.method public closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
.locals 3
if-eqz p2 , :cond_0
iget v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
if-nez v0 , :cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v0 , :cond_0
invoke-interface { v0 } , L androidx/appcompat/widget/DecorContentParent ;-> isOverflowMenuShowing ( ) Z
move-result v0
if-eqz v0 , :cond_0
iget-object p1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> checkCloseActionMenu ( L androidx/appcompat/view/menu/MenuBuilder ;) V
return-void
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2020-07-20 19:00:44 +00:00
const-string/jumbo v1 , "window"
2020-05-17 12:40:10 +00:00
invoke-virtual { v0 , v1 } , L android/content/Context ;-> getSystemService ( L java/lang/String ;) L java/lang/Object ;
move-result-object v0
check-cast v0 , L android/view/WindowManager ;
const/4 v1 , 0x0
if-eqz v0 , :cond_1
iget-boolean v2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
if-eqz v2 , :cond_1
iget-object v2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
if-eqz v2 , :cond_1
invoke-interface { v0 , v2 } , L android/view/WindowManager ;-> removeView ( L android/view/View ;) V
if-eqz p2 , :cond_1
iget p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
invoke-virtual { p0 , p2 , p1 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> callOnPanelClosed ( I L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/Menu ;) V
:cond_1
const/4 p2 , 0x0
iput-boolean p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isPrepared : Z
iput-boolean p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isHandled : Z
iput-boolean p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
iput-object v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
const/4 p2 , 0x1
iput-boolean p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshDecorView : Z
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPreparedPanel : L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
if-ne p2 , p1 , :cond_2
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPreparedPanel : L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
:cond_2
return-void
.end method
.method public createView ( L android/view/View ;L java/lang/String ;L android/content/Context ;L android/util/AttributeSet ;) L android/view/View ;
.locals 11
. param p3 # Landroid/content/Context;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p4 # Landroid/util/AttributeSet;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
const/4 v1 , 0x0
if-nez v0 , :cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
sget-object v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme : [I
invoke-virtual { v0 , v2 } , L android/content/Context ;-> obtainStyledAttributes ( [I ) L android/content/res/TypedArray ;
move-result-object v0
sget v2 , L androidx/appcompat/R$styleable ;-> AppCompatTheme_viewInflaterClass : I
invoke-virtual { v0 , v2 } , L android/content/res/TypedArray ;-> getString ( I ) L java/lang/String ;
move-result-object v0
if-eqz v0 , :cond_1
const-class v2 , L androidx/appcompat/app/AppCompatViewInflater ;
invoke-virtual { v2 } , L java/lang/Class ;-> getName ( ) L java/lang/String ;
move-result-object v2
invoke-virtual { v2 , v0 } , L java/lang/String ;-> equals ( L java/lang/Object ;) Z
move-result v2
if-eqz v2 , :cond_0
goto :goto_0
:cond_0
:try_start_0
invoke-static { v0 } , L java/lang/Class ;-> forName ( L java/lang/String ;) L java/lang/Class ;
move-result-object v2
new-array v3 , v1 , [ L java/lang/Class ;
invoke-virtual { v2 , v3 } , L java/lang/Class ;-> getDeclaredConstructor ( [ L java/lang/Class ;) L java/lang/reflect/Constructor ;
move-result-object v2
new-array v3 , v1 , [ L java/lang/Object ;
invoke-virtual { v2 , v3 } , L java/lang/reflect/Constructor ;-> newInstance ( [ L java/lang/Object ;) L java/lang/Object ;
move-result-object v2
check-cast v2 , L androidx/appcompat/app/AppCompatViewInflater ;
iput-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
:try_end_0
.catchall { :try_start_0 . . :try_end_0 } :catchall_0
goto :goto_1
:catchall_0
move-exception v2
new-instance v3 , L java/lang/StringBuilder ;
invoke-direct { v3 } , L java/lang/StringBuilder ;-> <init> ( ) V
const-string v4 , "Failed to instantiate custom view inflater "
invoke-virtual { v3 , v4 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
invoke-virtual { v3 , v0 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
const-string v0 , ". Falling back to default."
invoke-virtual { v3 , v0 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
invoke-virtual { v3 } , L java/lang/StringBuilder ;-> toString ( ) L java/lang/String ;
move-result-object v0
const-string v3 , "AppCompatDelegate"
invoke-static { v3 , v0 , v2 } , L android/util/Log ;-> i ( L java/lang/String ;L java/lang/String ;L java/lang/Throwable ;) I
new-instance v0 , L androidx/appcompat/app/AppCompatViewInflater ;
invoke-direct { v0 } , L androidx/appcompat/app/AppCompatViewInflater ;-> <init> ( ) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
goto :goto_1
:cond_1
:goto_0
new-instance v0 , L androidx/appcompat/app/AppCompatViewInflater ;
invoke-direct { v0 } , L androidx/appcompat/app/AppCompatViewInflater ;-> <init> ( ) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
:cond_2
:goto_1
sget-boolean v0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> IS_PRE_LOLLIPOP : Z
if-eqz v0 , :cond_5
instance-of v0 , p4 , L org/xmlpull/v1/XmlPullParser ;
const/4 v2 , 0x1
if-eqz v0 , :cond_3
move-object v0 , p4
check-cast v0 , L org/xmlpull/v1/XmlPullParser ;
invoke-interface { v0 } , L org/xmlpull/v1/XmlPullParser ;-> getDepth ( ) I
move-result v0
if-le v0 , v2 , :cond_4
const/4 v1 , 0x1
goto :goto_2
:cond_3
move-object v0 , p1
check-cast v0 , L android/view/ViewParent ;
invoke-direct { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> shouldInheritContext ( L android/view/ViewParent ;) Z
move-result v0
move v1 , v0
:cond_4
:goto_2
move v7 , v1
goto :goto_3
:cond_5
const/4 v7 , 0x0
:goto_3
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
sget-boolean v8 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> IS_PRE_LOLLIPOP : Z
const/4 v9 , 0x1
invoke-static { } , L androidx/appcompat/widget/VectorEnabledTintResources ;-> shouldBeUsed ( ) Z
move-result v10
move-object v3 , p1
move-object v4 , p2
move-object v5 , p3
move-object v6 , p4
invoke-virtual/range { v2 . . v10 } , L androidx/appcompat/app/AppCompatViewInflater ;-> createView ( L android/view/View ;L java/lang/String ;L android/content/Context ;L android/util/AttributeSet ;ZZZZ ) L android/view/View ;
move-result-object p1
return-object p1
.end method
.method public dismissPopups ( ) V
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v0 , :cond_0
invoke-interface { v0 } , L androidx/appcompat/widget/DecorContentParent ;-> dismissPopups ( ) V
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
if-eqz v0 , :cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object v0
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mShowActionModePopup : L java/lang/Runnable ;
invoke-virtual { v0 , v1 } , L android/view/View ;-> removeCallbacks ( L java/lang/Runnable ;) Z
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
invoke-virtual { v0 } , L android/widget/PopupWindow ;-> isShowing ( ) Z
move-result v0
if-eqz v0 , :cond_1
:try_start_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
invoke-virtual { v0 } , L android/widget/PopupWindow ;-> dismiss ( ) V
:try_end_0
.catch L java/lang/IllegalArgumentException ; { :try_start_0 . . :try_end_0 } :catch_0
:catch_0
:cond_1
const/4 v0 , 0x0
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
:cond_2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> endOnGoingFadeAnimation ( ) V
const/4 v0 , 0x0
invoke-virtual { p0 , v0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object v0
if-eqz v0 , :cond_3
iget-object v0 , v0 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-eqz v0 , :cond_3
invoke-virtual { v0 } , L androidx/appcompat/view/menu/MenuBuilder ;-> close ( ) V
:cond_3
return-void
.end method
.method public dispatchKeyEvent ( L android/view/KeyEvent ;) Z
.locals 3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v1 , v0 , L androidx/core/view/KeyEventDispatcher$Component ;
const/4 v2 , 0x1
if-nez v1 , :cond_0
instance-of v0 , v0 , L androidx/appcompat/app/AppCompatDialog ;
if-eqz v0 , :cond_1
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object v0
if-eqz v0 , :cond_1
invoke-static { v0 , p1 } , L androidx/core/view/KeyEventDispatcher ;-> dispatchBeforeHierarchy ( L android/view/View ;L android/view/KeyEvent ;) Z
move-result v0
if-eqz v0 , :cond_1
return v2
:cond_1
invoke-virtual { p1 } , L android/view/KeyEvent ;-> getKeyCode ( ) I
move-result v0
const/16 v1 , 0x52
if-ne v0 , v1 , :cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
invoke-virtual { v0 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
move-result-object v0
invoke-interface { v0 , p1 } , L android/view/Window$Callback ;-> dispatchKeyEvent ( L android/view/KeyEvent ;) Z
move-result v0
if-eqz v0 , :cond_2
return v2
:cond_2
invoke-virtual { p1 } , L android/view/KeyEvent ;-> getKeyCode ( ) I
move-result v0
invoke-virtual { p1 } , L android/view/KeyEvent ;-> getAction ( ) I
move-result v1
if-nez v1 , :cond_3
goto :goto_0
:cond_3
const/4 v2 , 0x0
:goto_0
if-eqz v2 , :cond_4
invoke-virtual { p0 , v0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onKeyDown ( I L android/view/KeyEvent ;) Z
move-result p1
goto :goto_1
:cond_4
invoke-virtual { p0 , v0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onKeyUp ( I L android/view/KeyEvent ;) Z
move-result p1
:goto_1
return p1
.end method
.method public doInvalidatePanelMenu ( I ) V
.locals 4
const/4 v0 , 0x1
invoke-virtual { p0 , p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object v1
iget-object v2 , v1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-eqz v2 , :cond_1
new-instance v2 , L android/os/Bundle ;
invoke-direct { v2 } , L android/os/Bundle ;-> <init> ( ) V
iget-object v3 , v1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { v3 , v2 } , L androidx/appcompat/view/menu/MenuBuilder ;-> saveActionViewStates ( L android/os/Bundle ;) V
invoke-virtual { v2 } , L android/os/Bundle ;-> size ( ) I
move-result v3
if-lez v3 , :cond_0
iput-object v2 , v1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> frozenActionViewState : L android/os/Bundle ;
:cond_0
iget-object v2 , v1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { v2 } , L androidx/appcompat/view/menu/MenuBuilder ;-> stopDispatchingItemsChanged ( ) V
iget-object v2 , v1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { v2 } , L androidx/appcompat/view/menu/MenuBuilder ;-> clear ( ) V
:cond_1
iput-boolean v0 , v1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshMenuContent : Z
iput-boolean v0 , v1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshDecorView : Z
const/16 v0 , 0x6c
if-eq p1 , v0 , :cond_2
if-nez p1 , :cond_3
:cond_2
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz p1 , :cond_3
const/4 p1 , 0x0
invoke-virtual { p0 , p1 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object v0
if-eqz v0 , :cond_3
iput-boolean p1 , v0 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isPrepared : Z
const/4 p1 , 0x0
invoke-direct { p0 , v0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> preparePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) Z
:cond_3
return-void
.end method
.method public endOnGoingFadeAnimation ( ) V
.locals 1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFadeAnim : L androidx/core/view/ViewPropertyAnimatorCompat ;
if-eqz v0 , :cond_0
invoke-virtual { v0 } , L androidx/core/view/ViewPropertyAnimatorCompat ;-> cancel ( ) V
:cond_0
return-void
.end method
.method public findMenuPanel ( L android/view/Menu ;) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
.locals 5
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPanels : [ L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
const/4 v1 , 0x0
if-eqz v0 , :cond_0
array-length v2 , v0
goto :goto_0
:cond_0
const/4 v2 , 0x0
:goto_0
if-ge v1 , v2 , :cond_2
aget-object v3 , v0 , v1
if-eqz v3 , :cond_1
iget-object v4 , v3 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-ne v4 , p1 , :cond_1
return-object v3
:cond_1
add-int/lit8 v1 , v1 , 0x1
goto :goto_0
:cond_2
const/4 p1 , 0x0
return-object p1
.end method
.method public findViewById ( I ) L android/view/View ;
.locals 1
. param p1 # I
.annotation build L androidx/annotation/IdRes ;
.end annotation
. end param
.annotation build L androidx/annotation/Nullable ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"<T:" ,
"Landroid/view/View;" ,
">(I)TT;"
}
.end annotation
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureSubDecor ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 , p1 } , L android/view/Window ;-> findViewById ( I ) L android/view/View ;
move-result-object p1
return-object p1
.end method
.method public final getActionBarThemedContext ( ) L android/content/Context ;
.locals 1
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
if-eqz v0 , :cond_0
invoke-virtual { v0 } , L androidx/appcompat/app/ActionBar ;-> getThemedContext ( ) L android/content/Context ;
move-result-object v0
goto :goto_0
:cond_0
const/4 v0 , 0x0
:goto_0
if-nez v0 , :cond_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
:cond_1
return-object v0
.end method
.method public final getAutoTimeNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
.locals 2
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-nez v0 , :cond_0
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager ;
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-static { v1 } , L androidx/appcompat/app/TwilightManager ;-> getInstance ( L android/content/Context ;) L androidx/appcompat/app/TwilightManager ;
move-result-object v1
invoke-direct { v0 , p0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L androidx/appcompat/app/TwilightManager ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
return-object v0
.end method
.method public final getDrawerToggleDelegate ( ) L androidx/appcompat/app/ActionBarDrawerToggle$Delegate ;
.locals 1
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl ;
invoke-direct { v0 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
return-object v0
.end method
.method public getLocalNightMode ( ) I
.locals 1
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
return v0
.end method
.method public getMenuInflater ( ) L android/view/MenuInflater ;
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mMenuInflater : L android/view/MenuInflater ;
if-nez v0 , :cond_1
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> initWindowDecorActionBar ( ) V
new-instance v0 , L androidx/appcompat/view/SupportMenuInflater ;
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
if-eqz v1 , :cond_0
invoke-virtual { v1 } , L androidx/appcompat/app/ActionBar ;-> getThemedContext ( ) L android/content/Context ;
move-result-object v1
goto :goto_0
:cond_0
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
:goto_0
invoke-direct { v0 , v1 } , L androidx/appcompat/view/SupportMenuInflater ;-> <init> ( L android/content/Context ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mMenuInflater : L android/view/MenuInflater ;
:cond_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mMenuInflater : L android/view/MenuInflater ;
return-object v0
.end method
.method public getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
.locals 3
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPanels : [ L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
if-eqz p2 , :cond_0
array-length v0 , p2
if-gt v0 , p1 , :cond_2
:cond_0
add-int/lit8 v0 , p1 , 0x1
new-array v0 , v0 , [ L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
if-eqz p2 , :cond_1
array-length v1 , p2
const/4 v2 , 0x0
invoke-static { p2 , v2 , v0 , v2 , v1 } , L java/lang/System ;-> arraycopy ( L java/lang/Object ;I L java/lang/Object ;II ) V
:cond_1
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPanels : [ L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-object p2 , v0
:cond_2
aget-object v0 , p2 , p1
if-nez v0 , :cond_3
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
invoke-direct { v0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> <init> ( I ) V
aput-object v0 , p2 , p1
:cond_3
return-object v0
.end method
.method public getSubDecor ( ) L android/view/ViewGroup ;
.locals 1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
return-object v0
.end method
.method public getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
.locals 1
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> initWindowDecorActionBar ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
return-object v0
.end method
.method public final getTitle ( ) L java/lang/CharSequence ;
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v1 , v0 , L android/app/Activity ;
if-eqz v1 , :cond_0
check-cast v0 , L android/app/Activity ;
invoke-virtual { v0 } , L android/app/Activity ;-> getTitle ( ) L java/lang/CharSequence ;
move-result-object v0
return-object v0
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTitle : L java/lang/CharSequence ;
return-object v0
.end method
.method public final getWindowCallback ( ) L android/view/Window$Callback ;
.locals 1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 } , L android/view/Window ;-> getCallback ( ) L android/view/Window$Callback ;
move-result-object v0
return-object v0
.end method
.method public hasWindowFeature ( I ) Z
.locals 4
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sanitizeWindowFeatureId ( I ) I
move-result v0
const/4 v1 , 0x1
const/4 v2 , 0x0
if-eq v0 , v1 , :cond_5
const/4 v3 , 0x2
if-eq v0 , v3 , :cond_4
const/4 v3 , 0x5
if-eq v0 , v3 , :cond_3
const/16 v3 , 0xa
if-eq v0 , v3 , :cond_2
const/16 v3 , 0x6c
if-eq v0 , v3 , :cond_1
const/16 v3 , 0x6d
if-eq v0 , v3 , :cond_0
const/4 v0 , 0x0
goto :goto_0
:cond_0
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
goto :goto_0
:cond_1
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
goto :goto_0
:cond_2
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionMode : Z
goto :goto_0
:cond_3
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureIndeterminateProgress : Z
goto :goto_0
:cond_4
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureProgress : Z
goto :goto_0
:cond_5
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindowNoTitle : Z
:goto_0
if-nez v0 , :cond_7
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 , p1 } , L android/view/Window ;-> hasFeature ( I ) Z
move-result p1
if-eqz p1 , :cond_6
goto :goto_1
:cond_6
const/4 v1 , 0x0
:cond_7
:goto_1
return v1
.end method
.method public installViewFactory ( ) V
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-static { v0 } , L android/view/LayoutInflater ;-> from ( L android/content/Context ;) L android/view/LayoutInflater ;
move-result-object v0
invoke-virtual { v0 } , L android/view/LayoutInflater ;-> getFactory ( ) L android/view/LayoutInflater$Factory ;
move-result-object v1
if-nez v1 , :cond_0
invoke-static { v0 , p0 } , L androidx/core/view/LayoutInflaterCompat ;-> setFactory2 ( L android/view/LayoutInflater ;L android/view/LayoutInflater$Factory2 ;) V
goto :goto_0
:cond_0
invoke-virtual { v0 } , L android/view/LayoutInflater ;-> getFactory2 ( ) L android/view/LayoutInflater$Factory2 ;
move-result-object v0
instance-of v0 , v0 , L androidx/appcompat/app/AppCompatDelegateImpl ;
if-nez v0 , :cond_1
const-string v0 , "AppCompatDelegate"
const-string v1 , "The Activity\'s LayoutInflater already has a Factory installed so we can not install AppCompat\'s"
invoke-static { v0 , v1 } , L android/util/Log ;-> i ( L java/lang/String ;L java/lang/String ;) I
:cond_1
:goto_0
return-void
.end method
.method public invalidateOptionsMenu ( ) V
.locals 1
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
if-eqz v0 , :cond_0
invoke-virtual { v0 } , L androidx/appcompat/app/ActionBar ;-> invalidateOptionsMenu ( ) Z
move-result v0
if-eqz v0 , :cond_0
return-void
:cond_0
const/4 v0 , 0x0
invoke-direct { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> invalidatePanelMenu ( I ) V
return-void
.end method
.method public isHandleNativeActionModesEnabled ( ) Z
.locals 1
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHandleNativeActionModes : Z
return v0
.end method
.method public mapNightMode ( I ) I
.locals 2
const/16 v0 , - 0x64
const/4 v1 , - 0x1
if-eq p1 , v0 , :cond_4
if-eq p1 , v1 , :cond_3
if-eqz p1 , :cond_1
const/4 v0 , 0x1
if-eq p1 , v0 , :cond_3
const/4 v0 , 0x2
if-eq p1 , v0 , :cond_3
const/4 v0 , 0x3
if-ne p1 , v0 , :cond_0
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getAutoBatteryNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
move-result-object p1
invoke-virtual { p1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> getApplyableNightMode ( ) I
move-result p1
return p1
:cond_0
new-instance p1 , L java/lang/IllegalStateException ;
const-string v0 , "Unknown value set for night mode. Please use one of the MODE_NIGHT values from AppCompatDelegate."
invoke-direct { p1 , v0 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
:cond_1
sget p1 , L android/os/Build$VERSION ;-> SDK_INT : I
const/16 v0 , 0x17
if-lt p1 , v0 , :cond_2
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
const-class v0 , L android/app/UiModeManager ;
invoke-virtual { p1 , v0 } , L android/content/Context ;-> getSystemService ( L java/lang/Class ;) L java/lang/Object ;
move-result-object p1
check-cast p1 , L android/app/UiModeManager ;
invoke-virtual { p1 } , L android/app/UiModeManager ;-> getNightMode ( ) I
move-result p1
if-nez p1 , :cond_2
return v1
:cond_2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getAutoTimeNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
move-result-object p1
invoke-virtual { p1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> getApplyableNightMode ( ) I
move-result p1
:cond_3
return p1
:cond_4
return v1
.end method
.method public onBackPressed ( ) Z
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
const/4 v1 , 0x1
if-eqz v0 , :cond_0
invoke-virtual { v0 } , L androidx/appcompat/view/ActionMode ;-> finish ( ) V
return v1
:cond_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
if-eqz v0 , :cond_1
invoke-virtual { v0 } , L androidx/appcompat/app/ActionBar ;-> collapseActionView ( ) Z
move-result v0
if-eqz v0 , :cond_1
return v1
:cond_1
const/4 v0 , 0x0
return v0
.end method
.method public onConfigurationChanged ( L android/content/res/Configuration ;) V
.locals 1
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
if-eqz v0 , :cond_0
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecorInstalled : Z
if-eqz v0 , :cond_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
if-eqz v0 , :cond_0
invoke-virtual { v0 , p1 } , L androidx/appcompat/app/ActionBar ;-> onConfigurationChanged ( L android/content/res/Configuration ;) V
:cond_0
invoke-static { } , L androidx/appcompat/widget/AppCompatDrawableManager ;-> get ( ) L androidx/appcompat/widget/AppCompatDrawableManager ;
move-result-object p1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { p1 , v0 } , L androidx/appcompat/widget/AppCompatDrawableManager ;-> onConfigurationChanged ( L android/content/Context ;) V
const/4 p1 , 0x0
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( Z ) Z
return-void
.end method
.method public onCreate ( L android/os/Bundle ;) V
.locals 2
const/4 p1 , 0x1
iput-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mBaseContextAttached : Z
const/4 v0 , 0x0
invoke-direct { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( Z ) Z
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureWindow ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v1 , v0 , L android/app/Activity ;
if-eqz v1 , :cond_1
const/4 v1 , 0x0
:try_start_0
check-cast v0 , L android/app/Activity ;
invoke-static { v0 } , L androidx/core/app/NavUtils ;-> getParentActivityName ( L android/app/Activity ;) L java/lang/String ;
move-result-object v1
:try_end_0
.catch L java/lang/IllegalArgumentException ; { :try_start_0 . . :try_end_0 } :catch_0
goto :goto_0
:catch_0
nop
:goto_0
if-eqz v1 , :cond_1
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
if-nez v0 , :cond_0
iput-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mEnableDefaultActionBarUp : Z
goto :goto_1
:cond_0
invoke-virtual { v0 , p1 } , L androidx/appcompat/app/ActionBar ;-> setDefaultDisplayHomeAsUpEnabled ( Z ) V
:cond_1
:goto_1
iput-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mCreated : Z
return-void
.end method
.method public final onCreateView ( L android/view/View ;L java/lang/String ;L android/content/Context ;L android/util/AttributeSet ;) L android/view/View ;
.locals 0
invoke-virtual { p0 , p1 , p2 , p3 , p4 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> createView ( L android/view/View ;L java/lang/String ;L android/content/Context ;L android/util/AttributeSet ;) L android/view/View ;
move-result-object p1
return-object p1
.end method
.method public onCreateView ( L java/lang/String ;L android/content/Context ;L android/util/AttributeSet ;) L android/view/View ;
.locals 1
const/4 v0 , 0x0
invoke-virtual { p0 , v0 , p1 , p2 , p3 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onCreateView ( L android/view/View ;L java/lang/String ;L android/content/Context ;L android/util/AttributeSet ;) L android/view/View ;
move-result-object p1
return-object p1
.end method
.method public onDestroy ( ) V
.locals 2
invoke-static { p0 } , L androidx/appcompat/app/AppCompatDelegate ;-> markStopped ( L androidx/appcompat/app/AppCompatDelegate ;) V
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuPosted : Z
if-eqz v0 , :cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object v0
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuRunnable : L java/lang/Runnable ;
invoke-virtual { v0 , v1 } , L android/view/View ;-> removeCallbacks ( L java/lang/Runnable ;) Z
:cond_0
const/4 v0 , 0x0
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStarted : Z
const/4 v0 , 0x1
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
if-eqz v0 , :cond_1
invoke-virtual { v0 } , L androidx/appcompat/app/ActionBar ;-> onDestroy ( ) V
:cond_1
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> cleanupAutoManagers ( ) V
return-void
.end method
.method public onKeyDown ( I L android/view/KeyEvent ;) Z
.locals 3
const/4 v0 , 0x4
const/4 v1 , 0x1
const/4 v2 , 0x0
if-eq p1 , v0 , :cond_1
const/16 v0 , 0x52
if-eq p1 , v0 , :cond_0
goto :goto_1
:cond_0
invoke-direct { p0 , v2 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onKeyDownPanel ( I L android/view/KeyEvent ;) Z
return v1
:cond_1
invoke-virtual { p2 } , L android/view/KeyEvent ;-> getFlags ( ) I
move-result p1
and-int/lit16 p1 , p1 , 0x80
if-eqz p1 , :cond_2
goto :goto_0
:cond_2
const/4 v1 , 0x0
:goto_0
iput-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLongPressBackDown : Z
:goto_1
return v2
.end method
.method public onKeyShortcut ( I L android/view/KeyEvent ;) Z
.locals 3
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
const/4 v1 , 0x1
if-eqz v0 , :cond_0
invoke-virtual { v0 , p1 , p2 } , L androidx/appcompat/app/ActionBar ;-> onKeyShortcut ( I L android/view/KeyEvent ;) Z
move-result p1
if-eqz p1 , :cond_0
return v1
:cond_0
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPreparedPanel : L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
if-eqz p1 , :cond_2
invoke-virtual { p2 } , L android/view/KeyEvent ;-> getKeyCode ( ) I
move-result v0
invoke-direct { p0 , p1 , v0 , p2 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> performPanelShortcut ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;I L android/view/KeyEvent ;I ) Z
move-result p1
if-eqz p1 , :cond_2
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPreparedPanel : L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
if-eqz p1 , :cond_1
iput-boolean v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isHandled : Z
:cond_1
return v1
:cond_2
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPreparedPanel : L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
const/4 v0 , 0x0
if-nez p1 , :cond_3
invoke-virtual { p0 , v0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p1
invoke-direct { p0 , p1 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> preparePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) Z
invoke-virtual { p2 } , L android/view/KeyEvent ;-> getKeyCode ( ) I
move-result v2
invoke-direct { p0 , p1 , v2 , p2 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> performPanelShortcut ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;I L android/view/KeyEvent ;I ) Z
move-result p2
iput-boolean v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isPrepared : Z
if-eqz p2 , :cond_3
return v1
:cond_3
return v0
.end method
.method public onKeyUp ( I L android/view/KeyEvent ;) Z
.locals 3
const/4 v0 , 0x4
const/4 v1 , 0x1
const/4 v2 , 0x0
if-eq p1 , v0 , :cond_1
const/16 v0 , 0x52
if-eq p1 , v0 , :cond_0
goto :goto_0
:cond_0
invoke-direct { p0 , v2 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onKeyUpPanel ( I L android/view/KeyEvent ;) Z
return v1
:cond_1
iget-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLongPressBackDown : Z
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLongPressBackDown : Z
invoke-virtual { p0 , v2 , v2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p2
if-eqz p2 , :cond_3
iget-boolean v0 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
if-eqz v0 , :cond_3
if-nez p1 , :cond_2
invoke-virtual { p0 , p2 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
:cond_2
return v1
:cond_3
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onBackPressed ( ) Z
move-result p1
if-eqz p1 , :cond_4
return v1
:cond_4
:goto_0
return v2
.end method
.method public onMenuItemSelected ( L androidx/appcompat/view/menu/MenuBuilder ;L android/view/MenuItem ;) Z
.locals 2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getWindowCallback ( ) L android/view/Window$Callback ;
move-result-object v0
if-eqz v0 , :cond_0
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez v1 , :cond_0
invoke-virtual { p1 } , L androidx/appcompat/view/menu/MenuBuilder ;-> getRootMenu ( ) L androidx/appcompat/view/menu/MenuBuilder ;
move-result-object p1
invoke-virtual { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> findMenuPanel ( L android/view/Menu ;) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p1
if-eqz p1 , :cond_0
iget p1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
invoke-interface { v0 , p1 , p2 } , L android/view/Window$Callback ;-> onMenuItemSelected ( I L android/view/MenuItem ;) Z
move-result p1
return p1
:cond_0
const/4 p1 , 0x0
return p1
.end method
.method public onMenuModeChange ( L androidx/appcompat/view/menu/MenuBuilder ;) V
.locals 1
const/4 v0 , 0x1
invoke-direct { p0 , p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> reopenMenu ( L androidx/appcompat/view/menu/MenuBuilder ;Z ) V
return-void
.end method
.method public onMenuOpened ( I ) V
.locals 1
const/16 v0 , 0x6c
if-ne p1 , v0 , :cond_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object p1
if-eqz p1 , :cond_0
const/4 v0 , 0x1
invoke-virtual { p1 , v0 } , L androidx/appcompat/app/ActionBar ;-> dispatchMenuVisibilityChanged ( Z ) V
:cond_0
return-void
.end method
.method public onPanelClosed ( I ) V
.locals 2
const/4 v0 , 0x0
const/16 v1 , 0x6c
if-ne p1 , v1 , :cond_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object p1
if-eqz p1 , :cond_1
invoke-virtual { p1 , v0 } , L androidx/appcompat/app/ActionBar ;-> dispatchMenuVisibilityChanged ( Z ) V
goto :goto_0
:cond_0
if-nez p1 , :cond_1
const/4 v1 , 0x1
invoke-virtual { p0 , p1 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p1
iget-boolean v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
if-eqz v1 , :cond_1
invoke-virtual { p0 , p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
:cond_1
:goto_0
return-void
.end method
.method public onPostCreate ( L android/os/Bundle ;) V
.locals 0
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureSubDecor ( ) V
return-void
.end method
.method public onPostResume ( ) V
.locals 2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
if-eqz v0 , :cond_0
const/4 v1 , 0x1
invoke-virtual { v0 , v1 } , L androidx/appcompat/app/ActionBar ;-> setShowHideAnimationEnabled ( Z ) V
:cond_0
return-void
.end method
.method public onSaveInstanceState ( L android/os/Bundle ;) V
.locals 2
iget p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
const/16 v0 , - 0x64
if-eq p1 , v0 , :cond_0
sget-object p1 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sLocalNightModes : L java/util/Map ;
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
invoke-virtual { v0 } , L java/lang/Object ;-> getClass ( ) L java/lang/Class ;
move-result-object v0
iget v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
invoke-static { v1 } , L java/lang/Integer ;-> valueOf ( I ) L java/lang/Integer ;
move-result-object v1
invoke-interface { p1 , v0 , v1 } , L java/util/Map ;-> put ( L java/lang/Object ;L java/lang/Object ;) L java/lang/Object ;
:cond_0
return-void
.end method
.method public onStart ( ) V
.locals 1
const/4 v0 , 0x1
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStarted : Z
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( ) Z
invoke-static { p0 } , L androidx/appcompat/app/AppCompatDelegate ;-> markStarted ( L androidx/appcompat/app/AppCompatDelegate ;) V
return-void
.end method
.method public onStop ( ) V
.locals 2
const/4 v0 , 0x0
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStarted : Z
invoke-static { p0 } , L androidx/appcompat/app/AppCompatDelegate ;-> markStopped ( L androidx/appcompat/app/AppCompatDelegate ;) V
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v1
if-eqz v1 , :cond_0
invoke-virtual { v1 , v0 } , L androidx/appcompat/app/ActionBar ;-> setShowHideAnimationEnabled ( Z ) V
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v0 , v0 , L android/app/Dialog ;
if-eqz v0 , :cond_1
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> cleanupAutoManagers ( ) V
:cond_1
return-void
.end method
.method public onSubDecorInstalled ( L android/view/ViewGroup ;) V
.locals 0
return-void
.end method
.method public final peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
.locals 1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
return-object v0
.end method
.method public requestWindowFeature ( I ) Z
.locals 4
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sanitizeWindowFeatureId ( I ) I
move-result p1
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindowNoTitle : Z
const/4 v1 , 0x0
const/16 v2 , 0x6c
if-eqz v0 , :cond_0
if-ne p1 , v2 , :cond_0
return v1
:cond_0
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
const/4 v3 , 0x1
if-eqz v0 , :cond_1
if-ne p1 , v3 , :cond_1
iput-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
:cond_1
if-eq p1 , v3 , :cond_7
const/4 v0 , 0x2
if-eq p1 , v0 , :cond_6
const/4 v0 , 0x5
if-eq p1 , v0 , :cond_5
const/16 v0 , 0xa
if-eq p1 , v0 , :cond_4
if-eq p1 , v2 , :cond_3
const/16 v0 , 0x6d
if-eq p1 , v0 , :cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 , p1 } , L android/view/Window ;-> requestFeature ( I ) Z
move-result p1
return p1
:cond_2
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
return v3
:cond_3
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
return v3
:cond_4
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionMode : Z
return v3
:cond_5
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureIndeterminateProgress : Z
return v3
:cond_6
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureProgress : Z
return v3
:cond_7
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindowNoTitle : Z
return v3
.end method
.method public setContentView ( I ) V
.locals 2
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureSubDecor ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
const v1 , 0x1020002
invoke-virtual { v0 , v1 } , L android/view/ViewGroup ;-> findViewById ( I ) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
invoke-virtual { v0 } , L android/view/ViewGroup ;-> removeAllViews ( ) V
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-static { v1 } , L android/view/LayoutInflater ;-> from ( L android/content/Context ;) L android/view/LayoutInflater ;
move-result-object v1
invoke-virtual { v1 , p1 , v0 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;) L android/view/View ;
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
invoke-virtual { p1 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
move-result-object p1
invoke-interface { p1 } , L android/view/Window$Callback ;-> onContentChanged ( ) V
return-void
.end method
.method public setContentView ( L android/view/View ;) V
.locals 2
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureSubDecor ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
const v1 , 0x1020002
invoke-virtual { v0 , v1 } , L android/view/ViewGroup ;-> findViewById ( I ) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
invoke-virtual { v0 } , L android/view/ViewGroup ;-> removeAllViews ( ) V
invoke-virtual { v0 , p1 } , L android/view/ViewGroup ;-> addView ( L android/view/View ;) V
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
invoke-virtual { p1 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
move-result-object p1
invoke-interface { p1 } , L android/view/Window$Callback ;-> onContentChanged ( ) V
return-void
.end method
.method public setContentView ( L android/view/View ;L android/view/ViewGroup$LayoutParams ;) V
.locals 2
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureSubDecor ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
const v1 , 0x1020002
invoke-virtual { v0 , v1 } , L android/view/ViewGroup ;-> findViewById ( I ) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
invoke-virtual { v0 } , L android/view/ViewGroup ;-> removeAllViews ( ) V
invoke-virtual { v0 , p1 , p2 } , L android/view/ViewGroup ;-> addView ( L android/view/View ;L android/view/ViewGroup$LayoutParams ;) V
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
invoke-virtual { p1 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
move-result-object p1
invoke-interface { p1 } , L android/view/Window$Callback ;-> onContentChanged ( ) V
return-void
.end method
.method public setHandleNativeActionModesEnabled ( Z ) V
.locals 0
iput-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHandleNativeActionModes : Z
return-void
.end method
.method public setLocalNightMode ( I ) V
.locals 1
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
if-eq v0 , p1 , :cond_0
iput p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( ) Z
:cond_0
return-void
.end method
.method public setSupportActionBar ( L androidx/appcompat/widget/Toolbar ;) V
.locals 3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v0 , v0 , L android/app/Activity ;
if-nez v0 , :cond_0
return-void
:cond_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
instance-of v1 , v0 , L androidx/appcompat/app/WindowDecorActionBar ;
if-nez v1 , :cond_3
const/4 v1 , 0x0
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mMenuInflater : L android/view/MenuInflater ;
if-eqz v0 , :cond_1
invoke-virtual { v0 } , L androidx/appcompat/app/ActionBar ;-> onDestroy ( ) V
:cond_1
if-eqz p1 , :cond_2
new-instance v0 , L androidx/appcompat/app/ToolbarActionBar ;
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getTitle ( ) L java/lang/CharSequence ;
move-result-object v1
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
invoke-direct { v0 , p1 , v1 , v2 } , L androidx/appcompat/app/ToolbarActionBar ;-> <init> ( L androidx/appcompat/widget/Toolbar ;L java/lang/CharSequence ;L android/view/Window$Callback ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 } , L androidx/appcompat/app/ToolbarActionBar ;-> getWrappedWindowCallback ( ) L android/view/Window$Callback ;
move-result-object v0
invoke-virtual { p1 , v0 } , L android/view/Window ;-> setCallback ( L android/view/Window$Callback ;) V
goto :goto_0
:cond_2
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
invoke-virtual { p1 , v0 } , L android/view/Window ;-> setCallback ( L android/view/Window$Callback ;) V
:goto_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> invalidateOptionsMenu ( ) V
return-void
:cond_3
new-instance p1 , L java/lang/IllegalStateException ;
const-string v0 , "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."
invoke-direct { p1 , v0 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
.end method
.method public setTheme ( I ) V
.locals 0
. param p1 # I
.annotation build L androidx/annotation/StyleRes ;
.end annotation
. end param
iput p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mThemeResId : I
return-void
.end method
.method public final setTitle ( L java/lang/CharSequence ;) V
.locals 1
iput-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTitle : L java/lang/CharSequence ;
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v0 , :cond_0
invoke-interface { v0 , p1 } , L androidx/appcompat/widget/DecorContentParent ;-> setWindowTitle ( L java/lang/CharSequence ;) V
goto :goto_0
:cond_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
if-eqz v0 , :cond_1
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
invoke-virtual { v0 , p1 } , L androidx/appcompat/app/ActionBar ;-> setWindowTitle ( L java/lang/CharSequence ;) V
goto :goto_0
:cond_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTitleView : L android/widget/TextView ;
if-eqz v0 , :cond_2
invoke-virtual { v0 , p1 } , L android/widget/TextView ;-> setText ( L java/lang/CharSequence ;) V
:cond_2
:goto_0
return-void
.end method
.method public final shouldAnimateActionModeView ( ) Z
.locals 1
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecorInstalled : Z
if-eqz v0 , :cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
if-eqz v0 , :cond_0
invoke-static { v0 } , L androidx/core/view/ViewCompat ;-> isLaidOut ( L android/view/View ;) Z
move-result v0
if-eqz v0 , :cond_0
const/4 v0 , 0x1
goto :goto_0
:cond_0
const/4 v0 , 0x0
:goto_0
return v0
.end method
.method public startSupportActionMode ( L androidx/appcompat/view/ActionMode$Callback ;) L androidx/appcompat/view/ActionMode ;
.locals 2
. param p1 # Landroidx/appcompat/view/ActionMode$Callback;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
if-eqz p1 , :cond_3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
if-eqz v0 , :cond_0
invoke-virtual { v0 } , L androidx/appcompat/view/ActionMode ;-> finish ( ) V
:cond_0
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$ActionModeCallbackWrapperV9 ;
invoke-direct { v0 , p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl$ActionModeCallbackWrapperV9 ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L androidx/appcompat/view/ActionMode$Callback ;) V
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object p1
if-eqz p1 , :cond_1
invoke-virtual { p1 , v0 } , L androidx/appcompat/app/ActionBar ;-> startActionMode ( L androidx/appcompat/view/ActionMode$Callback ;) L androidx/appcompat/view/ActionMode ;
move-result-object p1
iput-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
if-eqz p1 , :cond_1
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
if-eqz v1 , :cond_1
invoke-interface { v1 , p1 } , L androidx/appcompat/app/AppCompatCallback ;-> onSupportActionModeStarted ( L androidx/appcompat/view/ActionMode ;) V
:cond_1
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
if-nez p1 , :cond_2
invoke-virtual { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> startSupportActionModeFromWindow ( L androidx/appcompat/view/ActionMode$Callback ;) L androidx/appcompat/view/ActionMode ;
move-result-object p1
iput-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
:cond_2
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
return-object p1
:cond_3
new-instance p1 , L java/lang/IllegalArgumentException ;
const-string v0 , "ActionMode callback can not be null."
invoke-direct { p1 , v0 } , L java/lang/IllegalArgumentException ;-> <init> ( L java/lang/String ;) V
throw p1
.end method
.method public startSupportActionModeFromWindow ( L androidx/appcompat/view/ActionMode$Callback ;) L androidx/appcompat/view/ActionMode ;
.locals 7
. param p1 # Landroidx/appcompat/view/ActionMode$Callback;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> endOnGoingFadeAnimation ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
if-eqz v0 , :cond_0
invoke-virtual { v0 } , L androidx/appcompat/view/ActionMode ;-> finish ( ) V
:cond_0
instance-of v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$ActionModeCallbackWrapperV9 ;
if-nez v0 , :cond_1
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$ActionModeCallbackWrapperV9 ;
invoke-direct { v0 , p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl$ActionModeCallbackWrapperV9 ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L androidx/appcompat/view/ActionMode$Callback ;) V
move-object p1 , v0
:cond_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
const/4 v1 , 0x0
if-eqz v0 , :cond_2
iget-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez v2 , :cond_2
:try_start_0
invoke-interface { v0 , p1 } , L androidx/appcompat/app/AppCompatCallback ;-> onWindowStartingSupportActionMode ( L androidx/appcompat/view/ActionMode$Callback ;) L androidx/appcompat/view/ActionMode ;
move-result-object v0
:try_end_0
.catch L java/lang/AbstractMethodError ; { :try_start_0 . . :try_end_0 } :catch_0
goto :goto_0
:catch_0
:cond_2
move-object v0 , v1
:goto_0
if-eqz v0 , :cond_3
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
goto/16 :goto_5
:cond_3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
const/4 v2 , 0x0
const/4 v3 , 0x1
if-nez v0 , :cond_6
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsFloating : Z
if-eqz v0 , :cond_5
new-instance v0 , L android/util/TypedValue ;
invoke-direct { v0 } , L android/util/TypedValue ;-> <init> ( ) V
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v4 } , L android/content/Context ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v4
sget v5 , L androidx/appcompat/R$attr ;-> actionBarTheme : I
invoke-virtual { v4 , v5 , v0 , v3 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
iget v5 , v0 , L android/util/TypedValue ;-> resourceId : I
if-eqz v5 , :cond_4
iget-object v5 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v5 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v5
invoke-virtual { v5 } , L android/content/res/Resources ;-> newTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v5
invoke-virtual { v5 , v4 } , L android/content/res/Resources$Theme ;-> setTo ( L android/content/res/Resources$Theme ;) V
iget v4 , v0 , L android/util/TypedValue ;-> resourceId : I
invoke-virtual { v5 , v4 , v3 } , L android/content/res/Resources$Theme ;-> applyStyle ( IZ ) V
new-instance v4 , L androidx/appcompat/view/ContextThemeWrapper ;
iget-object v6 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-direct { v4 , v6 , v2 } , L androidx/appcompat/view/ContextThemeWrapper ;-> <init> ( L android/content/Context ;I ) V
invoke-virtual { v4 } , L androidx/appcompat/view/ContextThemeWrapper ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v6
invoke-virtual { v6 , v5 } , L android/content/res/Resources$Theme ;-> setTo ( L android/content/res/Resources$Theme ;) V
goto :goto_1
:cond_4
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
:goto_1
new-instance v5 , L androidx/appcompat/widget/ActionBarContextView ;
invoke-direct { v5 , v4 } , L androidx/appcompat/widget/ActionBarContextView ;-> <init> ( L android/content/Context ;) V
iput-object v5 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
new-instance v5 , L android/widget/PopupWindow ;
sget v6 , L androidx/appcompat/R$attr ;-> actionModePopupWindowStyle : I
invoke-direct { v5 , v4 , v1 , v6 } , L android/widget/PopupWindow ;-> <init> ( L android/content/Context ;L android/util/AttributeSet ;I ) V
iput-object v5 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
const/4 v6 , 0x2
invoke-static { v5 , v6 } , L androidx/core/widget/PopupWindowCompat ;-> setWindowLayoutType ( L android/widget/PopupWindow ;I ) V
iget-object v5 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
iget-object v6 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { v5 , v6 } , L android/widget/PopupWindow ;-> setContentView ( L android/view/View ;) V
iget-object v5 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
const/4 v6 , - 0x1
invoke-virtual { v5 , v6 } , L android/widget/PopupWindow ;-> setWidth ( I ) V
invoke-virtual { v4 } , L android/content/Context ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v5
sget v6 , L androidx/appcompat/R$attr ;-> actionBarSize : I
invoke-virtual { v5 , v6 , v0 , v3 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
iget v0 , v0 , L android/util/TypedValue ;-> data : I
invoke-virtual { v4 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v4
invoke-virtual { v4 } , L android/content/res/Resources ;-> getDisplayMetrics ( ) L android/util/DisplayMetrics ;
move-result-object v4
invoke-static { v0 , v4 } , L android/util/TypedValue ;-> complexToDimensionPixelSize ( I L android/util/DisplayMetrics ;) I
move-result v0
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { v4 , v0 } , L androidx/appcompat/widget/ActionBarContextView ;-> setContentHeight ( I ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
const/4 v4 , - 0x2
invoke-virtual { v0 , v4 } , L android/widget/PopupWindow ;-> setHeight ( I ) V
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$6 ;
invoke-direct { v0 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$6 ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mShowActionModePopup : L java/lang/Runnable ;
goto :goto_2
:cond_5
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
sget v4 , L androidx/appcompat/R$id ;-> action_mode_bar_stub : I
invoke-virtual { v0 , v4 } , L android/view/ViewGroup ;-> findViewById ( I ) L android/view/View ;
move-result-object v0
check-cast v0 , L androidx/appcompat/widget/ViewStubCompat ;
if-eqz v0 , :cond_6
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getActionBarThemedContext ( ) L android/content/Context ;
move-result-object v4
invoke-static { v4 } , L android/view/LayoutInflater ;-> from ( L android/content/Context ;) L android/view/LayoutInflater ;
move-result-object v4
invoke-virtual { v0 , v4 } , L androidx/appcompat/widget/ViewStubCompat ;-> setLayoutInflater ( L android/view/LayoutInflater ;) V
invoke-virtual { v0 } , L androidx/appcompat/widget/ViewStubCompat ;-> inflate ( ) L android/view/View ;
move-result-object v0
check-cast v0 , L androidx/appcompat/widget/ActionBarContextView ;
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
:cond_6
:goto_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
if-eqz v0 , :cond_b
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> endOnGoingFadeAnimation ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { v0 } , L androidx/appcompat/widget/ActionBarContextView ;-> killMode ( ) V
new-instance v0 , L androidx/appcompat/view/StandaloneActionMode ;
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { v4 } , L android/view/ViewGroup ;-> getContext ( ) L android/content/Context ;
move-result-object v4
iget-object v5 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
iget-object v6 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
if-nez v6 , :cond_7
goto :goto_3
:cond_7
const/4 v3 , 0x0
:goto_3
invoke-direct { v0 , v4 , v5 , p1 , v3 } , L androidx/appcompat/view/StandaloneActionMode ;-> <init> ( L android/content/Context ;L androidx/appcompat/widget/ActionBarContextView ;L androidx/appcompat/view/ActionMode$Callback ;Z ) V
invoke-virtual { v0 } , L androidx/appcompat/view/StandaloneActionMode ;-> getMenu ( ) L android/view/Menu ;
move-result-object v3
invoke-interface { p1 , v0 , v3 } , L androidx/appcompat/view/ActionMode$Callback ;-> onCreateActionMode ( L androidx/appcompat/view/ActionMode ;L android/view/Menu ;) Z
move-result p1
if-eqz p1 , :cond_a
invoke-virtual { v0 } , L androidx/appcompat/view/StandaloneActionMode ;-> invalidate ( ) V
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { p1 , v0 } , L androidx/appcompat/widget/ActionBarContextView ;-> initForMode ( L androidx/appcompat/view/ActionMode ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> shouldAnimateActionModeView ( ) Z
move-result p1
const/high16 v0 , 0x3f800000 # 1.0f
if-eqz p1 , :cond_8
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
const/4 v1 , 0x0
invoke-virtual { p1 , v1 } , L android/view/ViewGroup ;-> setAlpha ( F ) V
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-static { p1 } , L androidx/core/view/ViewCompat ;-> animate ( L android/view/View ;) L androidx/core/view/ViewPropertyAnimatorCompat ;
move-result-object p1
invoke-virtual { p1 , v0 } , L androidx/core/view/ViewPropertyAnimatorCompat ;-> alpha ( F ) L androidx/core/view/ViewPropertyAnimatorCompat ;
move-result-object p1
iput-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFadeAnim : L androidx/core/view/ViewPropertyAnimatorCompat ;
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$7 ;
invoke-direct { v0 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$7 ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
invoke-virtual { p1 , v0 } , L androidx/core/view/ViewPropertyAnimatorCompat ;-> setListener ( L androidx/core/view/ViewPropertyAnimatorListener ;) L androidx/core/view/ViewPropertyAnimatorCompat ;
goto :goto_4
:cond_8
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { p1 , v0 } , L android/view/ViewGroup ;-> setAlpha ( F ) V
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { p1 , v2 } , L androidx/appcompat/widget/ActionBarContextView ;-> setVisibility ( I ) V
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
const/16 v0 , 0x20
invoke-virtual { p1 , v0 } , L android/view/ViewGroup ;-> sendAccessibilityEvent ( I ) V
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { p1 } , L android/view/ViewGroup ;-> getParent ( ) L android/view/ViewParent ;
move-result-object p1
instance-of p1 , p1 , L android/view/View ;
if-eqz p1 , :cond_9
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { p1 } , L android/view/ViewGroup ;-> getParent ( ) L android/view/ViewParent ;
move-result-object p1
check-cast p1 , L android/view/View ;
invoke-static { p1 } , L androidx/core/view/ViewCompat ;-> requestApplyInsets ( L android/view/View ;) V
:cond_9
:goto_4
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
if-eqz p1 , :cond_b
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { p1 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object p1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mShowActionModePopup : L java/lang/Runnable ;
invoke-virtual { p1 , v0 } , L android/view/View ;-> post ( L java/lang/Runnable ;) Z
goto :goto_5
:cond_a
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
:cond_b
:goto_5
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
if-eqz p1 , :cond_c
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
if-eqz v0 , :cond_c
invoke-interface { v0 , p1 } , L androidx/appcompat/app/AppCompatCallback ;-> onSupportActionModeStarted ( L androidx/appcompat/view/ActionMode ;) V
:cond_c
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
return-object p1
.end method
.method public updateStatusGuard ( I ) I
2020-07-08 16:44:49 +00:00
.locals 8
2020-05-17 12:40:10 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
const/4 v1 , 0x0
if-eqz v0 , :cond_9
invoke-virtual { v0 } , L android/view/ViewGroup ;-> getLayoutParams ( ) L android/view/ViewGroup$LayoutParams ;
move-result-object v0
instance-of v0 , v0 , L android/view/ViewGroup$MarginLayoutParams ;
if-eqz v0 , :cond_9
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { v0 } , L android/view/ViewGroup ;-> getLayoutParams ( ) L android/view/ViewGroup$LayoutParams ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup$MarginLayoutParams ;
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { v2 } , L android/view/ViewGroup ;-> isShown ( ) Z
move-result v2
const/4 v3 , 0x1
2020-07-08 16:44:49 +00:00
if-eqz v2 , :cond_7
2020-05-17 12:40:10 +00:00
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTempRect1 : L android/graphics/Rect ;
if-nez v2 , :cond_0
new-instance v2 , L android/graphics/Rect ;
invoke-direct { v2 } , L android/graphics/Rect ;-> <init> ( ) V
iput-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTempRect1 : L android/graphics/Rect ;
new-instance v2 , L android/graphics/Rect ;
invoke-direct { v2 } , L android/graphics/Rect ;-> <init> ( ) V
iput-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTempRect2 : L android/graphics/Rect ;
:cond_0
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTempRect1 : L android/graphics/Rect ;
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTempRect2 : L android/graphics/Rect ;
invoke-virtual { v2 , v1 , p1 , v1 , v1 } , L android/graphics/Rect ;-> set ( IIII ) V
iget-object v5 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
invoke-static { v5 , v2 , v4 } , L androidx/appcompat/widget/ViewUtils ;-> computeFitSystemWindows ( L android/view/View ;L android/graphics/Rect ;L android/graphics/Rect ;) V
iget v2 , v4 , L android/graphics/Rect ;-> top : I
if-nez v2 , :cond_1
move v2 , p1
goto :goto_0
:cond_1
const/4 v2 , 0x0
:goto_0
iget v4 , v0 , L android/view/ViewGroup$MarginLayoutParams ;-> topMargin : I
if-eq v4 , v2 , :cond_4
iput p1 , v0 , L android/view/ViewGroup$MarginLayoutParams ;-> topMargin : I
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStatusGuard : L android/view/View ;
if-nez v2 , :cond_2
new-instance v2 , L android/view/View ;
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-direct { v2 , v4 } , L android/view/View ;-> <init> ( L android/content/Context ;) V
iput-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStatusGuard : L android/view/View ;
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v4 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v4
sget v5 , L androidx/appcompat/R$color ;-> abc_input_method_navigation_guard : I
invoke-virtual { v4 , v5 } , L android/content/res/Resources ;-> getColor ( I ) I
move-result v4
invoke-virtual { v2 , v4 } , L android/view/View ;-> setBackgroundColor ( I ) V
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStatusGuard : L android/view/View ;
new-instance v5 , L android/view/ViewGroup$LayoutParams ;
const/4 v6 , - 0x1
invoke-direct { v5 , v6 , p1 } , L android/view/ViewGroup$LayoutParams ;-> <init> ( II ) V
invoke-virtual { v2 , v4 , v6 , v5 } , L android/view/ViewGroup ;-> addView ( L android/view/View ;I L android/view/ViewGroup$LayoutParams ;) V
goto :goto_1
:cond_2
invoke-virtual { v2 } , L android/view/View ;-> getLayoutParams ( ) L android/view/ViewGroup$LayoutParams ;
move-result-object v2
iget v4 , v2 , L android/view/ViewGroup$LayoutParams ;-> height : I
if-eq v4 , p1 , :cond_3
iput p1 , v2 , L android/view/ViewGroup$LayoutParams ;-> height : I
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStatusGuard : L android/view/View ;
invoke-virtual { v4 , v2 } , L android/view/View ;-> setLayoutParams ( L android/view/ViewGroup$LayoutParams ;) V
:cond_3
:goto_1
const/4 v2 , 0x1
goto :goto_2
:cond_4
const/4 v2 , 0x0
:goto_2
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStatusGuard : L android/view/View ;
if-eqz v4 , :cond_5
goto :goto_3
:cond_5
const/4 v3 , 0x0
:goto_3
iget-boolean v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionMode : Z
2020-07-08 16:44:49 +00:00
if-nez v4 , :cond_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v3 , :cond_6
2020-05-17 12:40:10 +00:00
const/4 p1 , 0x0
:cond_6
2020-07-08 16:44:49 +00:00
move v7 , v3
move v3 , v2
move v2 , v7
goto :goto_4
:cond_7
2020-05-17 12:40:10 +00:00
iget v2 , v0 , L android/view/ViewGroup$MarginLayoutParams ;-> topMargin : I
2020-07-08 16:44:49 +00:00
if-eqz v2 , :cond_8
2020-05-17 12:40:10 +00:00
iput v1 , v0 , L android/view/ViewGroup$MarginLayoutParams ;-> topMargin : I
2020-07-08 16:44:49 +00:00
const/4 v2 , 0x0
2020-05-17 12:40:10 +00:00
goto :goto_4
2020-07-08 16:44:49 +00:00
:cond_8
2020-05-17 12:40:10 +00:00
const/4 v2 , 0x0
const/4 v3 , 0x0
2020-07-08 16:44:49 +00:00
:goto_4
if-eqz v3 , :cond_a
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual { v3 , v0 } , L android/view/ViewGroup ;-> setLayoutParams ( L android/view/ViewGroup$LayoutParams ;) V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_5
2020-05-17 12:40:10 +00:00
:cond_9
2020-07-08 16:44:49 +00:00
const/4 v2 , 0x0
2020-05-17 12:40:10 +00:00
:cond_a
2020-07-08 16:44:49 +00:00
:goto_5
2020-05-17 12:40:10 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStatusGuard : L android/view/View ;
if-eqz v0 , :cond_c
2020-07-08 16:44:49 +00:00
if-eqz v2 , :cond_b
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_6
2020-05-17 12:40:10 +00:00
:cond_b
const/16 v1 , 0x8
2020-07-08 16:44:49 +00:00
:goto_6
2020-05-17 12:40:10 +00:00
invoke-virtual { v0 , v1 } , L android/view/View ;-> setVisibility ( I ) V
:cond_c
return p1
.end method