2019-02-04 20:08:30 +00:00
.class L androidx/appcompat/app/AppCompatDelegateImpl ;
.super L androidx/appcompat/app/AppCompatDelegate ;
2019-02-04 20:29:01 +00:00
.source "AppCompatDelegateImpl.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements L android/view/LayoutInflater$Factory2 ;
.implements L androidx/appcompat/view/menu/MenuBuilder$Callback ;
# annotations
.annotation system L dalvik/annotation/MemberClasses ;
value = {
L androidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl ;,
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 private static final DEBUG : Z = false
.field 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 private static final IS_PRE_LOLLIPOP : Z
.field private static final KEY_LOCAL_NIGHT_MODE : L java/lang/String ; = "appcompat:local_night_mode"
.field private static sInstalledExceptionHandler : Z
.field private static final sWindowBackgroundStyleable : [I
# instance fields
.field mActionBar : L androidx/appcompat/app/ActionBar ;
.field private mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
.field mActionMode : L androidx/appcompat/view/ActionMode ;
.field mActionModePopup : L android/widget/PopupWindow ;
.field mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
.field final mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
.field private mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
.field final mAppCompatWindowCallback : L android/view/Window$Callback ;
.field private mApplyDayNightCalled : Z
.field private mAutoNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
.field private mClosingActionMenu : Z
.field final mContext : L android/content/Context ;
.field private mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
.field private mEnableDefaultActionBarUp : Z
.field mFadeAnim : L androidx/core/view/ViewPropertyAnimatorCompat ;
.field private mFeatureIndeterminateProgress : Z
.field private mFeatureProgress : Z
.field private mHandleNativeActionModes : Z
.field mHasActionBar : Z
.field mInvalidatePanelMenuFeatures : I
.field mInvalidatePanelMenuPosted : Z
.field private final mInvalidatePanelMenuRunnable : L java/lang/Runnable ;
.field mIsDestroyed : Z
.field mIsFloating : Z
.field private mLocalNightMode : I
.field private mLongPressBackDown : Z
.field mMenuInflater : L android/view/MenuInflater ;
.field final mOriginalWindowCallback : L android/view/Window$Callback ;
.field mOverlayActionBar : Z
.field mOverlayActionMode : Z
.field private mPanelMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;
.field private mPanels : [ L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
.field private mPreparedPanel : L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
.field mShowActionModePopup : L java/lang/Runnable ;
.field private mStatusGuard : L android/view/View ;
.field private mSubDecor : L android/view/ViewGroup ;
.field private mSubDecorInstalled : Z
.field private mTempRect1 : L android/graphics/Rect ;
.field private mTempRect2 : L android/graphics/Rect ;
.field private mTitle : L java/lang/CharSequence ;
.field private mTitleView : L android/widget/TextView ;
.field final mWindow : L android/view/Window ;
.field mWindowNoTitle : Z
# direct methods
.method static constructor <clinit> ( ) V
.locals 4
sget v0 , L android/os/Build$VERSION ;-> SDK_INT : I
const/4 v1 , 0x0
const/4 v2 , 0x1
const/16 v3 , 0x15
if-ge v0 , v3 , :cond_0
const/4 v0 , 0x1
goto :goto_0
:cond_0
const/4 v0 , 0x0
:goto_0
sput-boolean v0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> IS_PRE_LOLLIPOP : Z
new-array v0 , v2 , [I
const v3 , 0x1010054
aput v3 , v0 , v1
sput-object v0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sWindowBackgroundStyleable : [I
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 constructor <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;) 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 v1 , 0x1
iput-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHandleNativeActionModes : Z
const/16 v1 , - 0x64
iput v1 , 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 p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
iput-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { p2 } , L android/view/Window ;-> getCallback ( ) L android/view/Window$Callback ;
move-result-object p2
iput-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
2019-02-04 20:29:01 +00:00
instance-of p3 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-nez p3 , :cond_1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
new-instance p3 , L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-direct { p3 , p0 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L android/view/Window$Callback ;) V
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iput-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L android/view/Window$Callback ;
2019-02-04 20:08:30 +00:00
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
iget-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L android/view/Window$Callback ;
invoke-virtual { p2 , p3 } , L android/view/Window ;-> setCallback ( L android/view/Window$Callback ;) V
sget-object p2 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sWindowBackgroundStyleable : [I
invoke-static { p1 , v0 , p2 } , L androidx/appcompat/widget/TintTypedArray ;-> obtainStyledAttributes ( L android/content/Context ;L android/util/AttributeSet ;[I ) L androidx/appcompat/widget/TintTypedArray ;
move-result-object p1
const/4 p2 , 0x0
invoke-virtual { p1 , p2 } , L androidx/appcompat/widget/TintTypedArray ;-> getDrawableIfKnown ( I ) L android/graphics/drawable/Drawable ;
move-result-object p2
if-eqz p2 , :cond_0
iget-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { p3 , p2 } , L android/view/Window ;-> setBackgroundDrawable ( L android/graphics/drawable/Drawable ;) V
:cond_0
invoke-virtual { p1 } , L androidx/appcompat/widget/TintTypedArray ;-> recycle ( ) V
return-void
:cond_1
new-instance p1 , L java/lang/IllegalStateException ;
const-string p2 , "AppCompat has already installed itself into the Window"
invoke-direct { p1 , p2 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw 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 androidx/appcompat/widget/ContentFrameLayout ;-> requestLayout ( ) V
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_11
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
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
2019-02-04 20:29:01 +00:00
goto/16 :goto_3
2019-02-04 20:08:30 +00:00
: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
iget v1 , v0 , L android/util/TypedValue ;-> resourceId : I
if-eqz v1 , :cond_5
new-instance v1 , L androidx/appcompat/view/ContextThemeWrapper ;
iget-object v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
iget v0 , v0 , L android/util/TypedValue ;-> resourceId : I
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 ;
iget-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_c
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
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
:cond_8
move-object v0 , v5
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
: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 ;
2019-02-04 20:29:01 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
:cond_a
sget v1 , L androidx/appcompat/R$layout ;-> abc_screen_simple : I
2019-02-04 20:29:01 +00:00
invoke-virtual { v0 , v1 , v5 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;) L android/view/View ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
:goto_2
2019-02-04 20:08:30 +00:00
sget v1 , L android/os/Build$VERSION ;-> SDK_INT : I
const/16 v3 , 0x15
if-lt v1 , v3 , :cond_b
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
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
:cond_b
move-object v1 , v0
check-cast v1 , L androidx/appcompat/widget/FitWindowsViewGroup ;
new-instance v3 , L androidx/appcompat/app/AppCompatDelegateImpl$4 ;
invoke-direct { v3 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$4 ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
invoke-interface { v1 , v3 } , L androidx/appcompat/widget/FitWindowsViewGroup ;-> setOnFitSystemWindowsListener ( L androidx/appcompat/widget/FitWindowsViewGroup$OnFitSystemWindowsListener ;) V
:cond_c
2019-02-04 20:29:01 +00:00
:goto_3
2019-02-04 20:08:30 +00:00
if-eqz v0 , :cond_10
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-nez v1 , :cond_d
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_d
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_f
2019-02-04 20:29:01 +00:00
:goto_4
2019-02-04 20:08:30 +00:00
invoke-virtual { v3 } , L android/view/ViewGroup ;-> getChildCount ( ) I
move-result v6
if-lez v6 , :cond_e
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 androidx/appcompat/widget/ContentFrameLayout ;-> addView ( L android/view/View ;) V
2019-02-04 20:29:01 +00:00
goto :goto_4
2019-02-04 20:08:30 +00:00
:cond_e
const/4 v2 , - 0x1
invoke-virtual { v3 , v2 } , L android/view/ViewGroup ;-> setId ( I ) V
invoke-virtual { v1 , v4 } , L androidx/appcompat/widget/ContentFrameLayout ;-> setId ( I ) V
instance-of v2 , v3 , L android/widget/FrameLayout ;
if-eqz v2 , :cond_f
check-cast v3 , L android/widget/FrameLayout ;
invoke-virtual { v3 , v5 } , L android/widget/FrameLayout ;-> setForeground ( L android/graphics/drawable/Drawable ;) V
:cond_f
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_10
new-instance v0 , L java/lang/IllegalArgumentException ;
new-instance v1 , L java/lang/StringBuilder ;
const-string v2 , "AppCompat does not support the current theme features: { windowActionBar: "
invoke-direct { v1 , v2 } , L java/lang/StringBuilder ;-> <init> ( L java/lang/String ;) V
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
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( Z ) L java/lang/StringBuilder ;
const-string v2 , " }"
invoke-virtual { v1 , v2 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
invoke-virtual { v1 } , L java/lang/StringBuilder ;-> toString ( ) L java/lang/String ;
move-result-object v1
invoke-direct { v0 , v1 } , L java/lang/IllegalArgumentException ;-> <init> ( L java/lang/String ;) V
throw v0
:cond_11
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
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
.method private ensureAutoNightModeManager ( ) V
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-nez v0 , :cond_0
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
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$AutoNightModeManager ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L androidx/appcompat/app/TwilightManager ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
:cond_0
return-void
.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 getNightMode ( ) I
.locals 2
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
const/16 v1 , - 0x64
if-eq v0 , v1 , :cond_0
return v0
:cond_0
invoke-static { } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getDefaultNightMode ( ) I
move-result v0
return 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
2019-02-04 20:29:01 +00:00
if-eqz v0 , :cond_4
2019-02-04 20:08:30 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
if-eqz v0 , :cond_0
2019-02-04 20:29:01 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
2019-02-04 20:29:01 +00:00
instance-of v1 , v0 , L android/app/Activity ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v1 , :cond_1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
new-instance v1 , L androidx/appcompat/app/WindowDecorActionBar ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
check-cast v0 , L android/app/Activity ;
2019-02-04 20:08:30 +00:00
iget-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
2019-02-04 20:29:01 +00:00
invoke-direct { v1 , v0 , v2 } , L androidx/appcompat/app/WindowDecorActionBar ;-> <init> ( L android/app/Activity ;Z ) V
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_1
2019-02-04 20:29:01 +00:00
instance-of v1 , v0 , L android/app/Dialog ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v1 , :cond_2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
new-instance v1 , L androidx/appcompat/app/WindowDecorActionBar ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
check-cast v0 , L android/app/Dialog ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-direct { v1 , v0 } , L androidx/appcompat/app/WindowDecorActionBar ;-> <init> ( L android/app/Dialog ;) V
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
2019-02-04 20:08:30 +00:00
:cond_2
2019-02-04 20:29:01 +00:00
:goto_0
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:29:01 +00:00
return-void
:cond_4
:goto_1
2019-02-04 20:08:30 +00:00
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
iget-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
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 ;
iget-object p1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
if-eqz p1 , :cond_3
return v1
:cond_3
return v2
.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
iget v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
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 android/content/Context ;-> 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 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
move-result p1
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
move-result p1
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
const/4 p1 , 0x1
goto :goto_2
:cond_5
const/4 p1 , 0x0
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
:goto_2
if-eqz p1 , :cond_8
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
const-string v0 , "audio"
invoke-virtual { p2 , v0 } , L android/content/Context ;-> getSystemService ( L java/lang/String ;) L java/lang/Object ;
move-result-object p2
check-cast p2 , L android/media/AudioManager ;
if-eqz p2 , :cond_7
invoke-virtual { p2 , v1 } , L android/media/AudioManager ;-> playSoundEffect ( I ) V
goto :goto_3
:cond_7
const-string p2 , "AppCompatDelegate"
const-string v0 , "Couldn\'t get audio manager"
invoke-static { p2 , v0 } , L android/util/Log ;-> w ( L java/lang/String ;L java/lang/String ;) I
:cond_8
:goto_3
return p1
.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
2019-02-04 20:29:01 +00:00
if-nez v0 , :cond_10
2019-02-04 20:08:30 +00:00
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-eqz v0 , :cond_0
2019-02-04 20:29:01 +00:00
goto/16 :goto_4
2019-02-04 20:08:30 +00:00
: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 ;
const-string v3 , "window"
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
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
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 p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshDecorView : Z
if-eqz 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 ;-> 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
if-eqz v3 , :cond_d
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
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
:cond_f
:goto_3
return-void
2019-02-04 20:29:01 +00:00
:cond_10
:goto_4
return-void
2019-02-04 20:08:30 +00:00
.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
iget-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
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
iget v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
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 v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
iget-object v6 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> frozenActionViewState : L android/os/Bundle ;
invoke-virtual { v4 , v6 } , 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
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
iget-boolean v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> qwertyMode : Z
invoke-virtual { p2 , v0 } , L androidx/appcompat/view/menu/MenuBuilder ;-> setQwertyMode ( Z ) V
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
2019-02-04 20:29:01 +00:00
if-eqz p1 , :cond_6
2019-02-04 20:08:30 +00:00
invoke-interface { p1 } , L androidx/appcompat/widget/DecorContentParent ;-> canShowOverflowMenu ( ) Z
move-result p1
2019-02-04 20:29:01 +00:00
if-eqz p1 , :cond_6
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:29:01 +00:00
if-eqz p1 , :cond_6
2019-02-04 20:08:30 +00:00
: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
2019-02-04 20:29:01 +00:00
if-nez p2 , :cond_5
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:29:01 +00:00
if-eqz p1 , :cond_5
2019-02-04 20:08:30 +00:00
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
2019-02-04 20:29:01 +00:00
if-nez p2 , :cond_5
2019-02-04 20:08:30 +00:00
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 v0 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshMenuContent : Z
if-nez v0 , :cond_4
iget-object v0 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
iget-object v2 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-interface { p1 , v1 , v0 , v2 } , 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
return-void
:cond_5
2019-02-04 20:29:01 +00:00
:goto_1
return-void
:cond_6
2019-02-04 20:08:30 +00:00
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 1
const/16 v0 , 0x8
if-ne p1 , v0 , :cond_0
const-string p1 , "AppCompatDelegate"
const-string v0 , "You should now use the AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR id when requesting this feature."
invoke-static { p1 , v0 } , L android/util/Log ;-> i ( L java/lang/String ;L java/lang/String ;) I
const/16 p1 , 0x6c
return p1
:cond_0
const/16 v0 , 0x9
if-ne p1 , v0 , :cond_1
const-string p1 , "AppCompatDelegate"
const-string v0 , "You should now use the AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR_OVERLAY id when requesting this feature."
invoke-static { p1 , v0 } , L android/util/Log ;-> i ( L java/lang/String ;L java/lang/String ;) I
const/16 p1 , 0x6d
2019-02-04 20:29:01 +00:00
return p1
2019-02-04 20:08:30 +00:00
: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 shouldRecreateOnNightModeChange ( ) Z
.locals 6
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mApplyDayNightCalled : Z
const/4 v1 , 0x0
if-eqz v0 , :cond_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2019-02-04 20:29:01 +00:00
instance-of v2 , v0 , L android/app/Activity ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v2 , :cond_1
2019-02-04 20:08:30 +00:00
invoke-virtual { v0 } , L android/content/Context ;-> getPackageManager ( ) L android/content/pm/PackageManager ;
move-result-object v0
const/4 v2 , 0x1
: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 ;-> mContext : L android/content/Context ;
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 , v1 } , L android/content/pm/PackageManager ;-> getActivityInfo ( L android/content/ComponentName ;I ) L android/content/pm/ActivityInfo ;
move-result-object v0
iget v0 , v0 , L android/content/pm/ActivityInfo ;-> configChanges : I
:try_end_0
.catch L android/content/pm/PackageManager$NameNotFoundException ; { :try_start_0 . . :try_end_0 } :catch_0
and-int/lit16 v0 , v0 , 0x200
if-nez v0 , :cond_0
return v2
:cond_0
return v1
:catch_0
move-exception v0
const-string v1 , "AppCompatDelegate"
const-string v3 , "Exception while getting ActivityInfo"
invoke-static { v1 , v3 , v0 } , L android/util/Log ;-> d ( L java/lang/String ;L java/lang/String ;L java/lang/Throwable ;) I
return v2
:cond_1
return v1
.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 updateForNightMode ( I ) Z
.locals 4
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 v1
iget v2 , v1 , L android/content/res/Configuration ;-> uiMode : I
and-int/lit8 v2 , v2 , 0x30
const/4 v3 , 0x2
if-ne p1 , v3 , :cond_0
const/16 p1 , 0x20
goto :goto_0
:cond_0
const/16 p1 , 0x10
:goto_0
if-eq v2 , p1 , :cond_3
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> shouldRecreateOnNightModeChange ( ) Z
move-result v2
if-eqz v2 , :cond_1
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
check-cast p1 , L android/app/Activity ;
invoke-virtual { p1 } , L android/app/Activity ;-> recreate ( ) V
goto :goto_1
:cond_1
new-instance v2 , L android/content/res/Configuration ;
invoke-direct { v2 , v1 } , L android/content/res/Configuration ;-> <init> ( L android/content/res/Configuration ;) V
invoke-virtual { v0 } , L android/content/res/Resources ;-> getDisplayMetrics ( ) L android/util/DisplayMetrics ;
move-result-object v1
iget v3 , v2 , L android/content/res/Configuration ;-> uiMode : I
and-int/lit8 v3 , v3 , - 0x31
or-int/2addr p1 , v3
iput p1 , v2 , L android/content/res/Configuration ;-> uiMode : I
invoke-virtual { v0 , v2 , v1 } , 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 v1 , 0x1a
if-ge p1 , v1 , :cond_2
invoke-static { v0 } , L androidx/appcompat/app/ResourcesFlusher ;-> flush ( L android/content/res/Resources ;) V
:cond_2
:goto_1
const/4 p1 , 0x1
return p1
:cond_3
const/4 p1 , 0x0
return p1
.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 ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
invoke-interface { p1 } , L android/view/Window$Callback ;-> onContentChanged ( ) V
return-void
.end method
.method public applyDayNight ( ) Z
.locals 3
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getNightMode ( ) I
move-result v0
invoke-virtual { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mapNightMode ( I ) I
move-result v1
const/4 v2 , - 0x1
if-eq v1 , v2 , :cond_0
invoke-direct { p0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> updateForNightMode ( I ) Z
move-result v1
goto :goto_0
:cond_0
const/4 v1 , 0x0
:goto_0
if-nez v0 , :cond_1
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureAutoNightModeManager ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
invoke-virtual { v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> setup ( ) V
:cond_1
const/4 v0 , 0x1
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mApplyDayNightCalled : Z
return v1
.end method
.method callOnPanelClosed ( I L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/Menu ;) V
2019-02-04 20:29:01 +00:00
.locals 2
2019-02-04 20:08:30 +00:00
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 ;
2019-02-04 20:29:01 +00:00
array-length v1 , v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-ge p1 , v1 , :cond_0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
aget-object p2 , v0 , p1
2019-02-04 20:08:30 +00:00
: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 ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
invoke-interface { p2 , p1 , p3 } , L android/view/Window$Callback ;-> onPanelClosed ( I L android/view/Menu ;) V
:cond_3
return-void
.end method
.method 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 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 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 ;
const-string v1 , "window"
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
iget-object v2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
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
.catch L java/lang/Throwable ; { :try_start_0 . . :try_end_0 } :catch_0
2019-02-04 20:29:01 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
:catch_0
move-exception v2
const-string v3 , "AppCompatDelegate"
new-instance v4 , L java/lang/StringBuilder ;
const-string v5 , "Failed to instantiate custom view inflater "
invoke-direct { v4 , v5 } , L java/lang/StringBuilder ;-> <init> ( L java/lang/String ;) V
invoke-virtual { v4 , v0 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
const-string v0 , ". Falling back to default."
invoke-virtual { v4 , v0 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
invoke-virtual { v4 } , L java/lang/StringBuilder ;-> toString ( ) L java/lang/String ;
move-result-object v0
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
2019-02-04 20:29:01 +00:00
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:29:01 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:29:01 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
: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
2019-02-04 20:29:01 +00:00
:goto_2
2019-02-04 20:08:30 +00:00
move v7 , v1
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
:cond_5
const/4 v7 , 0x0
2019-02-04 20:29:01 +00:00
:goto_3
2019-02-04 20:08:30 +00:00
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 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 v1 , v0 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-eqz v1 , :cond_3
iget-object v0 , v0 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { v0 } , L androidx/appcompat/view/menu/MenuBuilder ;-> close ( ) V
:cond_3
return-void
.end method
.method dispatchKeyEvent ( L android/view/KeyEvent ;) Z
.locals 3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
2019-02-04 20:29:01 +00:00
instance-of v1 , v0 , L androidx/core/view/KeyEventDispatcher$Component ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const/4 v2 , 0x1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-nez v1 , :cond_0
2019-02-04 20:08:30 +00:00
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
2019-02-04 20:29:01 +00:00
return v2
2019-02-04 20:08:30 +00:00
:cond_1
invoke-virtual { p1 } , L android/view/KeyEvent ;-> getKeyCode ( ) I
move-result v0
2019-02-04 20:29:01 +00:00
const/16 v1 , 0x52
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-ne v0 , v1 , :cond_2
2019-02-04 20:08:30 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
invoke-interface { v0 , p1 } , L android/view/Window$Callback ;-> dispatchKeyEvent ( L android/view/KeyEvent ;) Z
move-result v0
if-eqz v0 , :cond_2
2019-02-04 20:29:01 +00:00
return v2
2019-02-04 20:08:30 +00:00
:cond_2
invoke-virtual { p1 } , L android/view/KeyEvent ;-> getKeyCode ( ) I
move-result v0
invoke-virtual { p1 } , L android/view/KeyEvent ;-> getAction ( ) I
2019-02-04 20:29:01 +00:00
move-result v1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-nez v1 , :cond_3
2019-02-04 20:08:30 +00:00
goto :goto_0
:cond_3
2019-02-04 20:29:01 +00:00
const/4 v2 , 0x0
2019-02-04 20:08:30 +00:00
:goto_0
2019-02-04 20:29:01 +00:00
if-eqz v2 , :cond_4
2019-02-04 20:08:30 +00:00
invoke-virtual { p0 , v0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onKeyDown ( I L android/view/KeyEvent ;) Z
move-result p1
return p1
:cond_4
invoke-virtual { p0 , v0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onKeyUp ( I L android/view/KeyEvent ;) Z
move-result p1
return p1
.end method
.method 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 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 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 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 final getAutoNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
.locals 1
.annotation build L androidx/annotation/VisibleForTesting ;
.end annotation
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureAutoNightModeManager ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoNightModeManager : 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 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 protected 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 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 final getTitle ( ) L java/lang/CharSequence ;
2019-02-04 20:29:01 +00:00
.locals 2
2019-02-04 20:08:30 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
2019-02-04 20:29:01 +00:00
instance-of v1 , v0 , L android/app/Activity ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v1 , :cond_0
2019-02-04 20:08:30 +00:00
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 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 2
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sanitizeWindowFeatureId ( I ) I
move-result v0
const/4 v1 , 0x0
sparse-switch v0 , :sswitch_data_0
const/4 v0 , 0x0
goto :goto_0
:sswitch_0
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
goto :goto_0
:sswitch_1
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
goto :goto_0
:sswitch_2
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionMode : Z
goto :goto_0
:sswitch_3
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureIndeterminateProgress : Z
goto :goto_0
:sswitch_4
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureProgress : Z
goto :goto_0
:sswitch_5
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindowNoTitle : Z
:goto_0
if-nez v0 , :cond_1
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_0
goto :goto_1
:cond_0
return v1
:cond_1
:goto_1
const/4 p1 , 0x1
return p1
nop
:sswitch_data_0
.sparse-switch
0x1 -> :sswitch_5
0x2 -> :sswitch_4
0x5 -> :sswitch_3
0xa -> :sswitch_2
0x6c -> :sswitch_1
0x6d -> :sswitch_0
.end sparse-switch
.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
return-void
: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
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 mapNightMode ( I ) I
.locals 2
const/16 v0 , - 0x64
const/4 v1 , - 0x1
if-eq p1 , v0 , :cond_2
if-eqz p1 , :cond_0
return p1
:cond_0
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 ;
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_1
return v1
:cond_1
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureAutoNightModeManager ( ) V
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
invoke-virtual { p1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> getApplyableNightMode ( ) I
move-result p1
return p1
:cond_2
return v1
.end method
.method 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
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( ) Z
return-void
.end method
.method public onCreate ( L android/os/Bundle ;) V
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
2019-02-04 20:29:01 +00:00
instance-of v1 , v0 , L android/app/Activity ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v1 , :cond_1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const/4 v1 , 0x0
2019-02-04 20:08:30 +00:00
:try_start_0
2019-02-04 20:29:01 +00:00
check-cast v0 , L android/app/Activity ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-static { v0 } , L androidx/core/app/NavUtils ;-> getParentActivityName ( L android/app/Activity ;) L java/lang/String ;
2019-02-04 20:08:30 +00:00
move-result-object v1
:try_end_0
.catch L java/lang/IllegalArgumentException ; { :try_start_0 . . :try_end_0 } :catch_0
:catch_0
2019-02-04 20:29:01 +00:00
if-eqz v1 , :cond_1
2019-02-04 20:08:30 +00:00
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
const/4 v1 , 0x1
if-nez v0 , :cond_0
iput-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mEnableDefaultActionBarUp : Z
goto :goto_0
:cond_0
invoke-virtual { v0 , v1 } , L androidx/appcompat/app/ActionBar ;-> setDefaultDisplayHomeAsUpEnabled ( Z ) V
:cond_1
:goto_0
if-eqz p1 , :cond_2
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
const/16 v1 , - 0x64
if-ne v0 , v1 , :cond_2
const-string v0 , "appcompat:local_night_mode"
invoke-virtual { p1 , v0 , v1 } , L android/os/Bundle ;-> getInt ( L java/lang/String ;I ) I
move-result p1
iput p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
:cond_2
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
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 , 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
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-eqz v0 , :cond_2
invoke-virtual { v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> cleanup ( ) V
:cond_2
return-void
.end method
.method 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 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 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 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 onPanelClosed ( I ) V
.locals 2
const/4 v0 , 0x0
const/16 v1 , 0x6c
if-ne p1 , v1 , :cond_1
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object p1
if-eqz p1 , :cond_0
invoke-virtual { p1 , v0 } , L androidx/appcompat/app/ActionBar ;-> dispatchMenuVisibilityChanged ( Z ) V
:cond_0
return-void
:cond_1
if-nez p1 , :cond_2
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_2
invoke-virtual { p0 , p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
:cond_2
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 v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
const/16 v1 , - 0x64
if-eq v0 , v1 , :cond_0
2019-02-04 20:29:01 +00:00
const-string v1 , "appcompat:local_night_mode"
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual { p1 , v1 , v0 } , L android/os/Bundle ;-> putInt ( L java/lang/String ;I ) V
2019-02-04 20:08:30 +00:00
:cond_0
return-void
.end method
.method public onStart ( ) V
.locals 0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( ) Z
return-void
.end method
.method public onStop ( ) 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 , 0x0
invoke-virtual { v0 , v1 } , L androidx/appcompat/app/ActionBar ;-> setShowHideAnimationEnabled ( Z ) V
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoNightModeManager : 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 onSubDecorInstalled ( L android/view/ViewGroup ;) V
.locals 0
return-void
.end method
.method 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 3
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
if-eqz v0 , :cond_0
const/16 v0 , 0x6c
if-ne p1 , v0 , :cond_0
return v1
:cond_0
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
const/4 v2 , 0x1
if-eqz v0 , :cond_1
if-ne p1 , v2 , :cond_1
iput-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
:cond_1
sparse-switch p1 , :sswitch_data_0
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
:sswitch_0
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
return v2
:sswitch_1
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
return v2
:sswitch_2
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionMode : Z
return v2
:sswitch_3
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureIndeterminateProgress : Z
return v2
:sswitch_4
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureProgress : Z
return v2
:sswitch_5
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindowNoTitle : Z
return v2
nop
:sswitch_data_0
.sparse-switch
0x1 -> :sswitch_5
0x2 -> :sswitch_4
0x5 -> :sswitch_3
0xa -> :sswitch_2
0x6c -> :sswitch_1
0x6d -> :sswitch_0
.end sparse-switch
.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 ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
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 ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
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 ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
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
packed-switch p1 , :pswitch_data_0
const-string p1 , "AppCompatDelegate"
const-string v0 , "setLocalNightMode() called with an unknown mode"
invoke-static { p1 , v0 } , L android/util/Log ;-> i ( L java/lang/String ;L java/lang/String ;) I
goto :goto_0
:pswitch_0
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
iget-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mApplyDayNightCalled : Z
if-eqz p1 , :cond_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( ) Z
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
:cond_0
:goto_0
return-void
:pswitch_data_0
.packed-switch - 0x1
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
.end packed-switch
.end method
.method public setSupportActionBar ( L androidx/appcompat/widget/Toolbar ;) V
.locals 3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
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 ;
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOriginalWindowCallback : L android/view/Window$Callback ;
check-cast v1 , L android/app/Activity ;
invoke-virtual { v1 } , L android/app/Activity ;-> getTitle ( ) L java/lang/CharSequence ;
move-result-object v1
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L android/view/Window$Callback ;
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
2019-02-04 20:29:01 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
: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 android/view/Window$Callback ;
2019-02-04 20:29:01 +00:00
invoke-virtual { p1 , v0 } , L android/view/Window ;-> setCallback ( L android/view/Window$Callback ;) V
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
:goto_0
2019-02-04 20:08:30 +00:00
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 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
return-void
: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
return-void
: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
return-void
.end method
.method 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
return v0
:cond_0
const/4 v0 , 0x0
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 ;
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
if-eqz p1 , :cond_1
2019-02-04 20:29:01 +00:00
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v1 , :cond_1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-interface { v1 , p1 } , L androidx/appcompat/app/AppCompatCallback ;-> onSupportActionModeStarted ( L androidx/appcompat/view/ActionMode ;) V
2019-02-04 20:08:30 +00:00
: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 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
2019-02-04 20:29:01 +00:00
iget-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-nez v2 , :cond_2
2019-02-04 20:08:30 +00:00
: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 android/content/Context ;-> 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 ;
iget-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 androidx/appcompat/widget/ActionBarContextView ;-> 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/ActionMode ;-> 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/ActionMode ;-> 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 androidx/appcompat/widget/ActionBarContextView ;-> 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 ;
iget-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 androidx/appcompat/widget/ActionBarContextView ;-> 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 androidx/appcompat/widget/ActionBarContextView ;-> sendAccessibilityEvent ( I ) V
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { p1 } , L androidx/appcompat/widget/ActionBarContextView ;-> 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 androidx/appcompat/widget/ActionBarContextView ;-> 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
2019-02-04 20:29:01 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz v0 , :cond_c
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-interface { v0 , p1 } , L androidx/appcompat/app/AppCompatCallback ;-> onSupportActionModeStarted ( L androidx/appcompat/view/ActionMode ;) V
2019-02-04 20:08:30 +00:00
:cond_c
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
return-object p1
.end method
.method updateStatusGuard ( I ) I
.locals 7
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 androidx/appcompat/widget/ActionBarContextView ;-> 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 androidx/appcompat/widget/ActionBarContextView ;-> 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 androidx/appcompat/widget/ActionBarContextView ;-> isShown ( ) Z
move-result v2
const/4 v3 , 0x1
if-eqz v2 , :cond_6
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 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
if-nez v4 , :cond_8
if-eqz v3 , :cond_8
const/4 p1 , 0x0
2019-02-04 20:29:01 +00:00
goto :goto_4
2019-02-04 20:08:30 +00:00
:cond_6
iget v2 , v0 , L android/view/ViewGroup$MarginLayoutParams ;-> topMargin : I
if-eqz v2 , :cond_7
iput v1 , v0 , L android/view/ViewGroup$MarginLayoutParams ;-> topMargin : I
const/4 v2 , 0x1
2019-02-04 20:29:01 +00:00
const/4 v3 , 0x0
2019-02-04 20:08:30 +00:00
goto :goto_4
:cond_7
const/4 v2 , 0x0
const/4 v3 , 0x0
:cond_8
2019-02-04 20:29:01 +00:00
:goto_4
2019-02-04 20:08:30 +00:00
if-eqz v2 , :cond_a
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
invoke-virtual { v2 , v0 } , L androidx/appcompat/widget/ActionBarContextView ;-> setLayoutParams ( L android/view/ViewGroup$LayoutParams ;) V
2019-02-04 20:29:01 +00:00
goto :goto_5
2019-02-04 20:08:30 +00:00
:cond_9
const/4 v3 , 0x0
:cond_a
2019-02-04 20:29:01 +00:00
:goto_5
2019-02-04 20:08:30 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStatusGuard : L android/view/View ;
if-eqz v0 , :cond_c
if-eqz v3 , :cond_b
2019-02-04 20:29:01 +00:00
goto :goto_6
2019-02-04 20:08:30 +00:00
:cond_b
const/16 v1 , 0x8
2019-02-04 20:29:01 +00:00
:goto_6
2019-02-04 20:08:30 +00:00
invoke-virtual { v0 , v1 } , L android/view/View ;-> setVisibility ( I ) V
:cond_c
return p1
.end method