2019-12-06 03:29:40 +00:00
.class public L androidx/appcompat/app/AppCompatDelegateImpl ;
2019-07-24 11:27:29 +00:00
.super L androidx/appcompat/app/AppCompatDelegate ;
.source "AppCompatDelegateImpl.java"
# interfaces
.implements L androidx/appcompat/view/menu/MenuBuilder$Callback ;
2019-12-06 03:29:40 +00:00
.implements L android/view/LayoutInflater$Factory2 ;
2019-07-24 11:27:29 +00:00
# annotations
2019-12-06 03:29:40 +00:00
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system L dalvik/annotation/MemberClasses ;
value = {
L androidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl ;,
2019-11-15 02:21:15 +00:00
L androidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager ;,
L androidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager ;,
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
.field public static final DEBUG : Z = false
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final EXCEPTION_HANDLER_MESSAGE_SUFFIX : L java/lang/String ; = ". If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way. See AppCompatDelegate.setCompatVectorFromResourcesEnabled() for more info."
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final IS_PRE_LOLLIPOP : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final sAlwaysOverrideConfiguration : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static sInstalledExceptionHandler : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final sLocalNightModes : L java/util/Map ;
2019-11-15 02:21:15 +00:00
.annotation system L dalvik/annotation/Signature ;
value = {
"Ljava/util/Map<" ,
"Ljava/lang/Class<" ,
"*>;" ,
"Ljava/lang/Integer;" ,
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public static final sWindowBackgroundStyleable : [I
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public mActionBar : L androidx/appcompat/app/ActionBar ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mActionMode : L androidx/appcompat/view/ActionMode ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mActionModePopup : L android/widget/PopupWindow ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mActivityHandlesUiMode : Z
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
.field public mActivityHandlesUiModeChecked : Z
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
.field public final mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
.field public mBaseContextAttached : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mClosingActionMenu : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mContext : L android/content/Context ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mCreated : Z
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
.field public mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mEnableDefaultActionBarUp : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mFadeAnim : L androidx/core/view/ViewPropertyAnimatorCompat ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mFeatureIndeterminateProgress : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mFeatureProgress : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mHandleNativeActionModes : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mHasActionBar : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mHost : L java/lang/Object ;
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
.field public mInvalidatePanelMenuFeatures : I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mInvalidatePanelMenuPosted : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mInvalidatePanelMenuRunnable : L java/lang/Runnable ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mIsDestroyed : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mIsFloating : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mLocalNightMode : I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mLongPressBackDown : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mMenuInflater : L android/view/MenuInflater ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mOverlayActionBar : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mOverlayActionMode : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mPanelMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mPanels : [ L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mPreparedPanel : L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mShowActionModePopup : L java/lang/Runnable ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mStarted : Z
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
.field public mStatusGuard : L android/view/View ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mSubDecor : L android/view/ViewGroup ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mSubDecorInstalled : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mTempRect1 : L android/graphics/Rect ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mTempRect2 : L android/graphics/Rect ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mThemeResId : I
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
.field public mTitle : L java/lang/CharSequence ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mTitleView : L android/widget/TextView ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mWindow : L android/view/Window ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mWindowNoTitle : Z
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit> ( ) V
2019-11-15 02:21:15 +00:00
.locals 5
new-instance v0 , L androidx/collection/ArrayMap ;
invoke-direct { v0 } , L androidx/collection/ArrayMap ;-> <init> ( ) V
sput-object v0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sLocalNightModes : L java/util/Map ;
2019-07-24 11:27:29 +00:00
sget v0 , L android/os/Build$VERSION ;-> SDK_INT : I
2019-12-06 03:29:40 +00:00
const/4 v1 , 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sput-boolean v1 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> IS_PRE_LOLLIPOP : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2 , 0x1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-array v3 , v2 , [I
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const v4 , 0x1010054
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput v4 , v3 , v1
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
sput-object v3 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sWindowBackgroundStyleable : [I
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
const/16 v3 , 0x19
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
if-gt v0 , v3 , :cond_0
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1 , 0x1
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
sput-boolean v1 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sAlwaysOverrideConfiguration : Z
2019-11-15 02:21:15 +00:00
2019-07-24 11:27:29 +00:00
sget-boolean v0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> IS_PRE_LOLLIPOP : Z
2019-12-06 03:29:40 +00:00
if-eqz v0 , :cond_1
2019-07-24 11:27:29 +00:00
sget-boolean v0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sInstalledExceptionHandler : Z
2019-12-06 03:29:40 +00:00
if-nez v0 , :cond_1
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
sput-boolean v2 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sInstalledExceptionHandler : Z
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
2019-11-15 02:21:15 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public constructor <init> ( L android/app/Activity ;L androidx/appcompat/app/AppCompatCallback ;) V
2019-11-15 02:21:15 +00:00
.locals 1
const/4 v0 , 0x0
invoke-direct { p0 , p1 , v0 , p2 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;L java/lang/Object ;) V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public constructor <init> ( L android/app/Dialog ;L androidx/appcompat/app/AppCompatCallback ;) V
2019-11-15 02:21:15 +00:00
.locals 2
invoke-virtual { p1 } , L android/app/Dialog ;-> getContext ( ) L android/content/Context ;
move-result-object v0
invoke-virtual { p1 } , L android/app/Dialog ;-> getWindow ( ) L android/view/Window ;
move-result-object v1
invoke-direct { p0 , v0 , v1 , p2 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;L java/lang/Object ;) V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public constructor <init> ( L android/content/Context ;L android/app/Activity ;L androidx/appcompat/app/AppCompatCallback ;) V
2019-11-15 02:21:15 +00:00
.locals 1
const/4 v0 , 0x0
invoke-direct { p0 , p1 , v0 , p3 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;L java/lang/Object ;) V
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public constructor <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;) V
2019-11-15 02:21:15 +00:00
.locals 0
invoke-direct { p0 , p1 , p2 , p3 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;L java/lang/Object ;) V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public constructor <init> ( L android/content/Context ;L android/view/Window ;L androidx/appcompat/app/AppCompatCallback ;L java/lang/Object ;) V
2019-07-24 11:27:29 +00:00
.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 ;
2019-11-15 02:21:15 +00:00
const/4 v0 , 0x1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHandleNativeActionModes : Z
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const/16 v0 , - 0x64
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iput v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
2019-07-24 11:27:29 +00:00
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 ;
2019-11-14 21:08:15 +00:00
iput-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iput-object p4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
if-ne p1 , v0 , :cond_0
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
instance-of p1 , p1 , L android/app/Dialog ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-eqz p1 , :cond_0
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> tryUnwrapContext ( ) L androidx/appcompat/app/AppCompatActivity ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
move-result-object p1
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
if-eqz p1 , :cond_0
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { p1 } , L androidx/appcompat/app/AppCompatActivity ;-> getDelegate ( ) L androidx/appcompat/app/AppCompatDelegate ;
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
move-result-object p1
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { p1 } , L androidx/appcompat/app/AppCompatDelegate ;-> getLocalNightMode ( ) I
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
move-result p1
iput p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
:cond_0
iget p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
if-ne p1 , v0 , :cond_1
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
sget-object p1 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sLocalNightModes : L java/util/Map ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
iget-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
invoke-virtual { p3 } , L java/lang/Object ;-> getClass ( ) L java/lang/Class ;
move-result-object p3
invoke-interface { p1 , p3 } , L java/util/Map ;-> get ( L java/lang/Object ;) L java/lang/Object ;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-11-15 02:21:15 +00:00
check-cast p1 , L java/lang/Integer ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
if-eqz p1 , :cond_1
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { p1 } , L java/lang/Integer ;-> intValue ( ) I
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
move-result p1
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
iput p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
sget-object p1 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sLocalNightModes : L java/util/Map ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
iget-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
invoke-virtual { p3 } , L java/lang/Object ;-> getClass ( ) L java/lang/Class ;
move-result-object p3
invoke-interface { p1 , p3 } , L java/util/Map ;-> remove ( L java/lang/Object ;) L java/lang/Object ;
:cond_1
if-eqz p2 , :cond_2
invoke-direct { p0 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> attachToWindow ( L android/view/Window ;) V
:cond_2
invoke-static { } , L androidx/appcompat/widget/AppCompatDrawableManager ;-> preload ( ) V
2019-11-10 14:21:47 +00:00
2019-11-14 21:08:15 +00:00
return-void
2019-11-15 02:21:15 +00:00
.end method
.method private applyDayNight ( Z ) Z
.locals 2
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-eqz v0 , :cond_0
const/4 p1 , 0x0
return p1
:cond_0
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> calculateNightMode ( ) I
move-result v0
invoke-virtual { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mapNightMode ( I ) I
move-result v1
invoke-direct { p0 , v1 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> updateForNightMode ( IZ ) Z
move-result p1
if-nez v0 , :cond_1
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getAutoTimeNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
move-result-object v1
invoke-virtual { v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> setup ( ) V
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_1
2019-11-15 02:21:15 +00:00
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
if-eqz v1 , :cond_2
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> cleanup ( ) V
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
:cond_2
:goto_0
const/4 v1 , 0x3
if-ne v0 , v1 , :cond_3
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getAutoBatteryNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
move-result-object v0
invoke-virtual { v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> setup ( ) V
goto :goto_1
:cond_3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-eqz v0 , :cond_4
invoke-virtual { v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> cleanup ( ) V
:cond_4
:goto_1
return p1
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
invoke-virtual { v0 } , L android/widget/FrameLayout ;-> requestLayout ( ) V
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-11-15 02:21:15 +00:00
.method private attachToWindow ( L android/view/Window ;) V
.locals 3
2019-12-06 03:29:40 +00:00
. param p1 # Landroid/view/Window;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
const-string v1 , "AppCompat has already installed itself into the Window"
if-nez v0 , :cond_2
invoke-virtual { p1 } , L android/view/Window ;-> getCallback ( ) L android/view/Window$Callback ;
move-result-object v0
instance-of v2 , v0 , L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
if-nez v2 , :cond_1
new-instance v1 , L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
invoke-direct { v1 , p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L android/view/Window$Callback ;) V
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
invoke-virtual { p1 , v0 } , L android/view/Window ;-> setCallback ( L android/view/Window$Callback ;) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
const/4 v1 , 0x0
sget-object v2 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sWindowBackgroundStyleable : [I
invoke-static { v0 , v1 , v2 } , L androidx/appcompat/widget/TintTypedArray ;-> obtainStyledAttributes ( L android/content/Context ;L android/util/AttributeSet ;[I ) L androidx/appcompat/widget/TintTypedArray ;
move-result-object v0
const/4 v1 , 0x0
invoke-virtual { v0 , v1 } , L androidx/appcompat/widget/TintTypedArray ;-> getDrawableIfKnown ( I ) L android/graphics/drawable/Drawable ;
move-result-object v1
if-eqz v1 , :cond_0
invoke-virtual { p1 , v1 } , L android/view/Window ;-> setBackgroundDrawable ( L android/graphics/drawable/Drawable ;) V
:cond_0
invoke-virtual { v0 } , L androidx/appcompat/widget/TintTypedArray ;-> recycle ( ) V
iput-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
return-void
:cond_1
new-instance p1 , L java/lang/IllegalStateException ;
invoke-direct { p1 , v1 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
:cond_2
new-instance p1 , L java/lang/IllegalStateException ;
invoke-direct { p1 , v1 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
.end method
.method private calculateNightMode ( ) I
.locals 2
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
const/16 v1 , - 0x64
if-eq v0 , v1 , :cond_0
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-11-15 02:21:15 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
invoke-static { } , L androidx/appcompat/app/AppCompatDelegate ;-> getDefaultNightMode ( ) I
2019-11-15 02:21:15 +00:00
move-result v0
2019-12-06 03:29:40 +00:00
:goto_0
2019-11-15 02:21:15 +00:00
return v0
.end method
.method private cleanupAutoManagers ( ) V
.locals 1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-eqz v0 , :cond_0
invoke-virtual { v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> cleanup ( ) V
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-eqz v0 , :cond_1
invoke-virtual { v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> cleanup ( ) V
:cond_1
return-void
.end method
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
if-eqz v1 , :cond_10
2019-07-24 11:27:29 +00:00
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
2019-11-15 02:21:15 +00:00
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureWindow ( ) V
2019-07-24 11:27:29 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-static { v0 } , L android/view/LayoutInflater ;-> from ( L android/content/Context ;) L android/view/LayoutInflater ;
move-result-object v0
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindowNoTitle : Z
const/4 v5 , 0x0
if-nez v1 , :cond_9
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsFloating : Z
if-eqz v1 , :cond_4
sget v1 , L androidx/appcompat/R$layout ;-> abc_dialog_title_material : I
invoke-virtual { v0 , v1 , v5 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
goto/16 :goto_3
:cond_4
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
if-eqz v0 , :cond_8
new-instance v0 , L android/util/TypedValue ;
invoke-direct { v0 } , L android/util/TypedValue ;-> <init> ( ) V
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v1 } , L android/content/Context ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v1
sget v6 , L androidx/appcompat/R$attr ;-> actionBarTheme : I
invoke-virtual { v1 , v6 , v0 , v3 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
2019-12-06 03:29:40 +00:00
iget v0 , v0 , L android/util/TypedValue ;-> resourceId : I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v0 , :cond_5
2019-07-24 11:27:29 +00:00
new-instance v1 , L androidx/appcompat/view/ContextThemeWrapper ;
iget-object v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
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
2019-12-06 03:29:40 +00:00
if-eqz v1 , :cond_b
2019-07-24 11:27:29 +00:00
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
const/4 v3 , 0x5
invoke-interface { v1 , v3 } , L androidx/appcompat/widget/DecorContentParent ;-> initFeature ( I ) V
goto :goto_3
:cond_8
move-object v0 , v5
goto :goto_3
:cond_9
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionMode : Z
if-eqz v1 , :cond_a
sget v1 , L androidx/appcompat/R$layout ;-> abc_screen_simple_overlay_action_mode : I
invoke-virtual { v0 , v1 , v5 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
goto :goto_2
:cond_a
sget v1 , L androidx/appcompat/R$layout ;-> abc_screen_simple : I
invoke-virtual { v0 , v1 , v5 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
:goto_2
sget v1 , L android/os/Build$VERSION ;-> SDK_INT : I
new-instance v1 , L androidx/appcompat/app/AppCompatDelegateImpl$3 ;
invoke-direct { v1 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$3 ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
invoke-static { v0 , v1 } , L androidx/core/view/ViewCompat ;-> setOnApplyWindowInsetsListener ( L android/view/View ;L androidx/core/view/OnApplyWindowInsetsListener ;) V
:cond_b
:goto_3
2019-12-06 03:29:40 +00:00
if-eqz v0 , :cond_f
2019-07-24 11:27:29 +00:00
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
2019-12-06 03:29:40 +00:00
if-nez v1 , :cond_c
2019-07-24 11:27:29 +00:00
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 ;
2019-12-06 03:29:40 +00:00
:cond_c
2019-07-24 11:27:29 +00:00
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 ;
2019-12-06 03:29:40 +00:00
if-eqz v3 , :cond_e
2019-07-24 11:27:29 +00:00
:goto_4
invoke-virtual { v3 } , L android/view/ViewGroup ;-> getChildCount ( ) I
move-result v6
2019-12-06 03:29:40 +00:00
if-lez v6 , :cond_d
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
invoke-virtual { v1 , v6 } , L android/widget/FrameLayout ;-> addView ( L android/view/View ;) V
2019-07-24 11:27:29 +00:00
goto :goto_4
2019-12-06 03:29:40 +00:00
:cond_d
2019-07-24 11:27:29 +00:00
const/4 v2 , - 0x1
invoke-virtual { v3 , v2 } , L android/view/ViewGroup ;-> setId ( I ) V
2019-12-06 03:29:40 +00:00
invoke-virtual { v1 , v4 } , L android/widget/FrameLayout ;-> setId ( I ) V
2019-07-24 11:27:29 +00:00
instance-of v2 , v3 , L android/widget/FrameLayout ;
2019-12-06 03:29:40 +00:00
if-eqz v2 , :cond_e
2019-07-24 11:27:29 +00:00
check-cast v3 , L android/widget/FrameLayout ;
invoke-virtual { v3 , v5 } , L android/widget/FrameLayout ;-> setForeground ( L android/graphics/drawable/Drawable ;) V
2019-12-06 03:29:40 +00:00
:cond_e
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
:cond_f
2019-07-24 11:27:29 +00:00
new-instance v0 , L java/lang/IllegalArgumentException ;
2019-12-06 03:29:40 +00:00
const-string v1 , "AppCompat does not support the current theme features: { windowActionBar: "
2019-07-24 11:27:29 +00:00
2020-04-27 20:53:11 +00:00
invoke-static { v1 } , L e/e/b/a/a ;-> a ( L java/lang/String ;) L java/lang/StringBuilder ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
const-string v3 , " }"
2019-07-24 11:27:29 +00:00
2020-04-27 20:53:11 +00:00
invoke-static { v1 , v2 , v3 } , L e/e/b/a/a ;-> a ( L java/lang/StringBuilder ;Z L java/lang/String ;) L java/lang/String ;
2019-07-24 11:27:29 +00:00
move-result-object v1
invoke-direct { v0 , v1 } , L java/lang/IllegalArgumentException ;-> <init> ( L java/lang/String ;) V
throw v0
2019-12-06 03:29:40 +00:00
:cond_10
2019-07-24 11:27:29 +00:00
invoke-virtual { v0 } , L android/content/res/TypedArray ;-> recycle ( ) V
new-instance v0 , L java/lang/IllegalStateException ;
const-string v1 , "You need to use a Theme.AppCompat theme (or descendant) with this activity."
invoke-direct { v0 , v1 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw v0
.end method
.method private ensureSubDecor ( ) V
.locals 2
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecorInstalled : Z
if-nez v0 , :cond_4
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> createSubDecor ( ) L android/view/ViewGroup ;
move-result-object v0
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getTitle ( ) L java/lang/CharSequence ;
move-result-object v0
invoke-static { v0 } , L android/text/TextUtils ;-> isEmpty ( L java/lang/CharSequence ;) Z
move-result v1
if-nez v1 , :cond_2
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v1 , :cond_0
invoke-interface { v1 , v0 } , L androidx/appcompat/widget/DecorContentParent ;-> setWindowTitle ( L java/lang/CharSequence ;) V
goto :goto_0
:cond_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v1
if-eqz v1 , :cond_1
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v1
invoke-virtual { v1 , v0 } , L androidx/appcompat/app/ActionBar ;-> setWindowTitle ( L java/lang/CharSequence ;) V
goto :goto_0
:cond_1
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTitleView : L android/widget/TextView ;
if-eqz v1 , :cond_2
invoke-virtual { v1 , v0 } , L android/widget/TextView ;-> setText ( L java/lang/CharSequence ;) V
:cond_2
:goto_0
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyFixedSizeWindow ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
invoke-virtual { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onSubDecorInstalled ( L android/view/ViewGroup ;) V
const/4 v0 , 0x1
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecorInstalled : Z
const/4 v0 , 0x0
invoke-virtual { p0 , v0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object v0
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez v1 , :cond_4
if-eqz v0 , :cond_3
iget-object v0 , v0 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-nez v0 , :cond_4
:cond_3
const/16 v0 , 0x6c
invoke-direct { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> invalidatePanelMenu ( I ) V
:cond_4
return-void
.end method
2019-11-15 02:21:15 +00:00
.method private ensureWindow ( ) V
2019-07-24 11:27:29 +00:00
.locals 2
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
if-nez v0 , :cond_0
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
instance-of v1 , v0 , L android/app/Activity ;
if-eqz v1 , :cond_0
check-cast v0 , L android/app/Activity ;
invoke-virtual { v0 } , L android/app/Activity ;-> getWindow ( ) L android/view/Window ;
move-result-object v0
invoke-direct { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> attachToWindow ( L android/view/Window ;) V
2019-07-24 11:27:29 +00:00
:cond_0
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
if-eqz v0 , :cond_1
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
return-void
:cond_1
new-instance v0 , L java/lang/IllegalStateException ;
const-string v1 , "We have not been given a Window"
invoke-direct { v0 , v1 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw v0
.end method
.method private getAutoBatteryNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-nez v0 , :cond_0
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager ;
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-direct { v0 , p0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L android/content/Context ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoBatteryNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
return-object v0
2019-07-24 11:27:29 +00:00
.end method
.method private initWindowDecorActionBar ( ) V
.locals 3
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureSubDecor ( ) V
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
if-eqz v0 , :cond_3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
if-eqz v0 , :cond_0
goto :goto_1
:cond_0
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
2019-07-24 11:27:29 +00:00
instance-of v1 , v0 , L android/app/Activity ;
if-eqz v1 , :cond_1
new-instance v1 , L androidx/appcompat/app/WindowDecorActionBar ;
check-cast v0 , L android/app/Activity ;
iget-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
invoke-direct { v1 , v0 , v2 } , L androidx/appcompat/app/WindowDecorActionBar ;-> <init> ( L android/app/Activity ;Z ) V
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
goto :goto_0
:cond_1
instance-of v1 , v0 , L android/app/Dialog ;
if-eqz v1 , :cond_2
new-instance v1 , L androidx/appcompat/app/WindowDecorActionBar ;
check-cast v0 , L android/app/Dialog ;
invoke-direct { v1 , v0 } , L androidx/appcompat/app/WindowDecorActionBar ;-> <init> ( L android/app/Dialog ;) V
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
:cond_2
:goto_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
if-eqz v0 , :cond_3
iget-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mEnableDefaultActionBarUp : Z
invoke-virtual { v0 , v1 } , L androidx/appcompat/app/ActionBar ;-> setDefaultDisplayHomeAsUpEnabled ( Z ) V
:cond_3
:goto_1
return-void
.end method
.method private initializePanelContent ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;) Z
.locals 3
iget-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
const/4 v1 , 0x1
if-eqz v0 , :cond_0
iput-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
return v1
:cond_0
iget-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
const/4 v2 , 0x0
if-nez v0 , :cond_1
return v2
:cond_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPanelMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;
if-nez v0 , :cond_2
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;
invoke-direct { v0 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPanelMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;
:cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPanelMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$PanelMenuPresenterCallback ;
invoke-virtual { p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> getListMenuView ( L androidx/appcompat/view/menu/MenuPresenter$Callback ;) L androidx/appcompat/view/menu/MenuView ;
move-result-object v0
check-cast v0 , L android/view/View ;
iput-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
iget-object p1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
if-eqz p1 , :cond_3
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_3
2019-12-06 03:29:40 +00:00
const/4 v1 , 0x0
:goto_0
return v1
2019-07-24 11:27:29 +00:00
.end method
.method private initializePanelDecor ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;) Z
.locals 2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getActionBarThemedContext ( ) L android/content/Context ;
move-result-object v0
invoke-virtual { p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> setStyle ( L android/content/Context ;) V
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$ListMenuDecorView ;
iget-object v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> listPresenterContext : L android/content/Context ;
invoke-direct { v0 , p0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$ListMenuDecorView ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L android/content/Context ;) V
iput-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
const/16 v0 , 0x51
iput v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> gravity : I
const/4 p1 , 0x1
return p1
.end method
.method private initializePanelMenu ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;) Z
.locals 6
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
iget v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
const/4 v2 , 0x1
if-eqz v1 , :cond_0
const/16 v3 , 0x6c
if-ne v1 , v3 , :cond_4
:cond_0
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v1 , :cond_4
new-instance v1 , L android/util/TypedValue ;
invoke-direct { v1 } , L android/util/TypedValue ;-> <init> ( ) V
invoke-virtual { v0 } , L android/content/Context ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v3
sget v4 , L androidx/appcompat/R$attr ;-> actionBarTheme : I
invoke-virtual { v3 , v4 , v1 , v2 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
const/4 v4 , 0x0
iget v5 , v1 , L android/util/TypedValue ;-> resourceId : I
if-eqz v5 , :cond_1
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v4
invoke-virtual { v4 } , L android/content/res/Resources ;-> newTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v4
invoke-virtual { v4 , v3 } , L android/content/res/Resources$Theme ;-> setTo ( L android/content/res/Resources$Theme ;) V
iget v5 , v1 , L android/util/TypedValue ;-> resourceId : I
invoke-virtual { v4 , v5 , v2 } , L android/content/res/Resources$Theme ;-> applyStyle ( IZ ) V
sget v5 , L androidx/appcompat/R$attr ;-> actionBarWidgetTheme : I
invoke-virtual { v4 , v5 , v1 , v2 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
goto :goto_0
:cond_1
sget v5 , L androidx/appcompat/R$attr ;-> actionBarWidgetTheme : I
invoke-virtual { v3 , v5 , v1 , v2 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
:goto_0
iget v5 , v1 , L android/util/TypedValue ;-> resourceId : I
if-eqz v5 , :cond_3
if-nez v4 , :cond_2
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v4
invoke-virtual { v4 } , L android/content/res/Resources ;-> newTheme ( ) L android/content/res/Resources$Theme ;
2019-11-15 02:21:15 +00:00
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
2019-12-06 03:29:40 +00:00
invoke-virtual { v1 } , L androidx/appcompat/view/ContextThemeWrapper ;-> getTheme ( ) L android/content/res/Resources$Theme ;
2019-11-15 02:21:15 +00:00
move-result-object v0
invoke-virtual { v0 , v4 } , L android/content/res/Resources$Theme ;-> setTo ( L android/content/res/Resources$Theme ;) V
move-object v0 , v1
:cond_4
new-instance v1 , L androidx/appcompat/view/menu/MenuBuilder ;
invoke-direct { v1 , v0 } , L androidx/appcompat/view/menu/MenuBuilder ;-> <init> ( L android/content/Context ;) V
invoke-virtual { v1 , p0 } , L androidx/appcompat/view/menu/MenuBuilder ;-> setCallback ( L androidx/appcompat/view/menu/MenuBuilder$Callback ;) V
invoke-virtual { p1 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> setMenu ( L androidx/appcompat/view/menu/MenuBuilder ;) V
return v2
.end method
.method private invalidatePanelMenu ( I ) V
.locals 2
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuFeatures : I
const/4 v1 , 0x1
shl-int p1 , v1 , p1
or-int/2addr p1 , v0
iput p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuFeatures : I
iget-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuPosted : Z
if-nez p1 , :cond_0
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { p1 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object p1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuRunnable : L java/lang/Runnable ;
invoke-static { p1 , v0 } , L androidx/core/view/ViewCompat ;-> postOnAnimation ( L android/view/View ;L java/lang/Runnable ;) V
iput-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuPosted : Z
:cond_0
return-void
.end method
.method private isActivityManifestHandlingUiMode ( ) Z
.locals 6
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActivityHandlesUiModeChecked : Z
const/4 v1 , 0x1
if-nez v0 , :cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v0 , v0 , L android/app/Activity ;
if-eqz v0 , :cond_2
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { v0 } , L android/content/Context ;-> getPackageManager ( ) L android/content/pm/PackageManager ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const/4 v2 , 0x0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-nez v0 , :cond_0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
return v2
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:cond_0
:try_start_0
new-instance v3 , L android/content/ComponentName ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v5 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { v5 } , L java/lang/Object ;-> getClass ( ) L java/lang/Class ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v5
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct { v3 , v4 , v5 } , L android/content/ComponentName ;-> <init> ( L android/content/Context ;L java/lang/Class ;) V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { v0 , v3 , v2 } , L android/content/pm/PackageManager ;-> getActivityInfo ( L android/content/ComponentName ;I ) L android/content/pm/ActivityInfo ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-eqz v0 , :cond_1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget v0 , v0 , L android/content/pm/ActivityInfo ;-> configChanges : I
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
and-int/lit16 v0 , v0 , 0x200
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-eqz v0 , :cond_1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const/4 v0 , 0x1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:cond_1
const/4 v0 , 0x0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:goto_0
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActivityHandlesUiMode : Z
:try_end_0
.catch L android/content/pm/PackageManager$NameNotFoundException ; { :try_start_0 . . :try_end_0 } :catch_0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:catch_0
move-exception v0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const-string v3 , "AppCompatDelegate"
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const-string v4 , "Exception while getting ActivityInfo"
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-static { v3 , v4 , v0 } , L android/util/Log ;-> d ( L java/lang/String ;L java/lang/String ;L java/lang/Throwable ;) I
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iput-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActivityHandlesUiMode : Z
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:cond_2
:goto_1
iput-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActivityHandlesUiModeChecked : Z
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActivityHandlesUiMode : Z
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
return v0
2019-07-24 11:27:29 +00:00
.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
if-nez v0 , :cond_f
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-eqz v0 , :cond_0
goto/16 :goto_3
:cond_0
iget v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
const/4 v1 , 0x0
const/4 v2 , 0x1
if-nez v0 , :cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v0
invoke-virtual { v0 } , L android/content/res/Resources ;-> getConfiguration ( ) L android/content/res/Configuration ;
move-result-object v0
iget v0 , v0 , L android/content/res/Configuration ;-> screenLayout : I
and-int/lit8 v0 , v0 , 0xf
const/4 v3 , 0x4
if-ne v0 , v3 , :cond_1
const/4 v0 , 0x1
goto :goto_0
:cond_1
const/4 v0 , 0x0
:goto_0
if-eqz v0 , :cond_2
return-void
:cond_2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getWindowCallback ( ) L android/view/Window$Callback ;
move-result-object v0
if-eqz v0 , :cond_3
iget v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-interface { v0 , v3 , v4 } , L android/view/Window$Callback ;-> onMenuOpened ( I L android/view/Menu ;) Z
move-result v0
if-nez v0 , :cond_3
invoke-virtual { p0 , p1 , v2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
return-void
:cond_3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
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
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
2019-12-06 03:29:40 +00:00
iget-boolean v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshDecorView : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v3 , :cond_a
2019-07-24 11:27:29 +00:00
invoke-virtual { p2 } , L android/view/ViewGroup ;-> getChildCount ( ) I
move-result p2
if-lez p2 , :cond_a
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
invoke-virtual { p2 } , L android/view/ViewGroup ;-> removeAllViews ( ) V
:cond_a
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> initializePanelContent ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;) Z
move-result p2
if-eqz p2 , :cond_f
invoke-virtual { p1 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> hasPanelItems ( ) Z
move-result p2
if-nez p2 , :cond_b
goto :goto_3
:cond_b
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { p2 } , L android/view/View ;-> getLayoutParams ( ) L android/view/ViewGroup$LayoutParams ;
move-result-object p2
if-nez p2 , :cond_c
new-instance p2 , L android/view/ViewGroup$LayoutParams ;
invoke-direct { p2 , v4 , v4 } , L android/view/ViewGroup$LayoutParams ;-> <init> ( II ) V
:cond_c
iget v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> background : I
iget-object v5 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
invoke-virtual { v5 , v3 } , L android/view/ViewGroup ;-> setBackgroundResource ( I ) V
iget-object v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { v3 } , L android/view/View ;-> getParent ( ) L android/view/ViewParent ;
move-result-object v3
instance-of v5 , v3 , L android/view/ViewGroup ;
if-eqz v5 , :cond_d
check-cast v3 , L android/view/ViewGroup ;
iget-object v5 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { v3 , v5 } , L android/view/ViewGroup ;-> removeView ( L android/view/View ;) V
:cond_d
iget-object v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
iget-object v5 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { v3 , v5 , p2 } , L android/view/ViewGroup ;-> addView ( L android/view/View ;L android/view/ViewGroup$LayoutParams ;) V
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { p2 } , L android/view/View ;-> hasFocus ( ) Z
move-result p2
if-nez p2 , :cond_e
iget-object p2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> shownPanelView : L android/view/View ;
invoke-virtual { p2 } , L android/view/View ;-> requestFocus ( ) Z
:cond_e
const/4 v6 , - 0x2
:goto_2
iput-boolean v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isHandled : Z
new-instance p2 , L android/view/WindowManager$LayoutParams ;
const/4 v7 , - 0x2
iget v8 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> x : I
iget v9 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> y : I
const/16 v10 , 0x3ea
const/high16 v11 , 0x820000
const/4 v12 , - 0x3
move-object v5 , p2
invoke-direct/range { v5 . . v12 } , L android/view/WindowManager$LayoutParams ;-> <init> ( IIIIIII ) V
iget v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> gravity : I
iput v1 , p2 , L android/view/WindowManager$LayoutParams ;-> gravity : I
iget v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> windowAnimations : I
iput v1 , p2 , L android/view/WindowManager$LayoutParams ;-> windowAnimations : I
iget-object v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> decorView : L android/view/ViewGroup ;
invoke-interface { v0 , v1 , p2 } , L android/view/WindowManager ;-> addView ( L android/view/View ;L android/view/ViewGroup$LayoutParams ;) V
iput-boolean v2 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
:cond_f
:goto_3
return-void
.end method
.method private performPanelShortcut ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;I L android/view/KeyEvent ;I ) Z
.locals 2
invoke-virtual { p3 } , L android/view/KeyEvent ;-> isSystem ( ) Z
move-result v0
const/4 v1 , 0x0
if-eqz v0 , :cond_0
return v1
:cond_0
iget-boolean v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isPrepared : Z
if-nez v0 , :cond_1
invoke-direct { p0 , p1 , p3 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> preparePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) Z
move-result v0
if-eqz v0 , :cond_2
:cond_1
iget-object v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-eqz v0 , :cond_2
invoke-virtual { v0 , p2 , p3 , p4 } , L androidx/appcompat/view/menu/MenuBuilder ;-> performShortcut ( I L android/view/KeyEvent ;I ) Z
move-result v1
:cond_2
if-eqz v1 , :cond_3
const/4 p2 , 0x1
and-int/lit8 p3 , p4 , 0x1
if-nez p3 , :cond_3
iget-object p3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-nez p3 , :cond_3
invoke-virtual { p0 , p1 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
:cond_3
return v1
.end method
.method private preparePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) Z
.locals 8
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
const/4 v1 , 0x0
if-eqz v0 , :cond_0
return v1
:cond_0
iget-boolean v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isPrepared : Z
const/4 v2 , 0x1
if-eqz v0 , :cond_1
return v2
:cond_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPreparedPanel : L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
if-eqz v0 , :cond_2
if-eq v0 , p1 , :cond_2
invoke-virtual { p0 , v0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
:cond_2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getWindowCallback ( ) L android/view/Window$Callback ;
move-result-object v0
if-eqz v0 , :cond_3
iget v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
invoke-interface { v0 , v3 } , L android/view/Window$Callback ;-> onCreatePanelView ( I ) L android/view/View ;
move-result-object v3
iput-object v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
:cond_3
iget v3 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
if-eqz v3 , :cond_5
const/16 v4 , 0x6c
if-ne v3 , v4 , :cond_4
goto :goto_0
:cond_4
const/4 v3 , 0x0
goto :goto_1
:cond_5
:goto_0
const/4 v3 , 0x1
:goto_1
if-eqz v3 , :cond_6
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v4 , :cond_6
invoke-interface { v4 } , L androidx/appcompat/widget/DecorContentParent ;-> setMenuPrepared ( ) V
:cond_6
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
if-nez v4 , :cond_15
if-eqz v3 , :cond_7
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v4
instance-of v4 , v4 , L androidx/appcompat/app/ToolbarActionBar ;
if-nez v4 , :cond_15
:cond_7
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
const/4 v5 , 0x0
if-eqz v4 , :cond_8
iget-boolean v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshMenuContent : Z
if-eqz v4 , :cond_f
:cond_8
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-nez v4 , :cond_a
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> initializePanelMenu ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;) Z
move-result v4
if-eqz v4 , :cond_9
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-nez v4 , :cond_a
:cond_9
return v1
:cond_a
if-eqz v3 , :cond_c
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v4 , :cond_c
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
if-nez v4 , :cond_b
new-instance v4 , L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
invoke-direct { v4 , p0 } , L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;) V
iput-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
:cond_b
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
iget-object v6 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
iget-object v7 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
invoke-interface { v4 , v6 , v7 } , L androidx/appcompat/widget/DecorContentParent ;-> setMenu ( L android/view/Menu ;L androidx/appcompat/view/menu/MenuPresenter$Callback ;) V
:cond_c
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { v4 } , L androidx/appcompat/view/menu/MenuBuilder ;-> stopDispatchingItemsChanged ( ) V
iget v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> featureId : I
iget-object v6 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-interface { v0 , v4 , v6 } , L android/view/Window$Callback ;-> onCreatePanelMenu ( I L android/view/Menu ;) Z
move-result v4
if-nez v4 , :cond_e
invoke-virtual { p1 , v5 } , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> setMenu ( L androidx/appcompat/view/menu/MenuBuilder ;) V
if-eqz v3 , :cond_d
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz p1 , :cond_d
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMenuPresenterCallback : L androidx/appcompat/app/AppCompatDelegateImpl$ActionMenuPresenterCallback ;
invoke-interface { p1 , v5 , p2 } , L androidx/appcompat/widget/DecorContentParent ;-> setMenu ( L android/view/Menu ;L androidx/appcompat/view/menu/MenuPresenter$Callback ;) V
:cond_d
return v1
:cond_e
iput-boolean v1 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshMenuContent : Z
:cond_f
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-virtual { v4 } , L androidx/appcompat/view/menu/MenuBuilder ;-> stopDispatchingItemsChanged ( ) V
iget-object v4 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> frozenActionViewState : L android/os/Bundle ;
if-eqz v4 , :cond_10
2019-12-06 03:29:40 +00:00
iget-object v6 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual { v6 , v4 } , L androidx/appcompat/view/menu/MenuBuilder ;-> restoreActionViewStates ( L android/os/Bundle ;) V
2019-07-24 11:27:29 +00:00
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
if-eqz p1 , :cond_5
invoke-interface { p1 } , L androidx/appcompat/widget/DecorContentParent ;-> canShowOverflowMenu ( ) Z
move-result p1
if-eqz p1 , :cond_5
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-static { p1 } , L android/view/ViewConfiguration ;-> get ( L android/content/Context ;) L android/view/ViewConfiguration ;
move-result-object p1
invoke-virtual { p1 } , L android/view/ViewConfiguration ;-> hasPermanentMenuKey ( ) Z
move-result p1
if-eqz p1 , :cond_0
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { p1 } , L androidx/appcompat/widget/DecorContentParent ;-> isOverflowMenuShowPending ( ) Z
move-result p1
if-eqz p1 , :cond_5
:cond_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getWindowCallback ( ) L android/view/Window$Callback ;
move-result-object p1
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { v2 } , L androidx/appcompat/widget/DecorContentParent ;-> isOverflowMenuShowing ( ) Z
move-result v2
const/16 v3 , 0x6c
if-eqz v2 , :cond_2
if-nez p2 , :cond_1
goto :goto_0
:cond_1
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { p2 } , L androidx/appcompat/widget/DecorContentParent ;-> hideOverflowMenu ( ) Z
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez p2 , :cond_4
invoke-virtual { p0 , v1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p2
iget-object p2 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-interface { p1 , v3 , p2 } , L android/view/Window$Callback ;-> onPanelClosed ( I L android/view/Menu ;) V
goto :goto_1
:cond_2
:goto_0
if-eqz p1 , :cond_4
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez p2 , :cond_4
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuPosted : Z
if-eqz p2 , :cond_3
iget p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuFeatures : I
and-int/2addr p2 , v0
if-eqz p2 , :cond_3
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { p2 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object p2
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuRunnable : L java/lang/Runnable ;
invoke-virtual { p2 , v2 } , L android/view/View ;-> removeCallbacks ( L java/lang/Runnable ;) Z
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mInvalidatePanelMenuRunnable : L java/lang/Runnable ;
invoke-interface { p2 } , L java/lang/Runnable ;-> run ( ) V
:cond_3
invoke-virtual { p0 , v1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p2
iget-object v0 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
if-eqz v0 , :cond_4
2019-12-06 03:29:40 +00:00
iget-boolean v2 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshMenuContent : Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-nez v2 , :cond_4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v2 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> createdPanelView : L android/view/View ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface { p1 , v1 , v2 , v0 } , L android/view/Window$Callback ;-> onPreparePanel ( I L android/view/View ;L android/view/Menu ;) Z
2019-07-24 11:27:29 +00:00
move-result v0
if-eqz v0 , :cond_4
iget-object p2 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
invoke-interface { p1 , v3 , p2 } , L android/view/Window$Callback ;-> onMenuOpened ( I L android/view/Menu ;) Z
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
invoke-interface { p1 } , L androidx/appcompat/widget/DecorContentParent ;-> showOverflowMenu ( ) Z
:cond_4
:goto_1
return-void
:cond_5
invoke-virtual { p0 , v1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object p1
iput-boolean v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> refreshDecorView : Z
invoke-virtual { p0 , p1 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
const/4 p2 , 0x0
invoke-direct { p0 , p1 , p2 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> openPanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/KeyEvent ;) V
return-void
.end method
.method private sanitizeWindowFeatureId ( I ) I
.locals 2
const-string v0 , "AppCompatDelegate"
const/16 v1 , 0x8
if-ne p1 , v1 , :cond_0
const-string p1 , "You should now use the AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR id when requesting this feature."
invoke-static { v0 , p1 } , L android/util/Log ;-> i ( L java/lang/String ;L java/lang/String ;) I
const/16 p1 , 0x6c
return p1
:cond_0
const/16 v1 , 0x9
if-ne p1 , v1 , :cond_1
const-string p1 , "You should now use the AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR_OVERLAY id when requesting this feature."
invoke-static { v0 , p1 } , L android/util/Log ;-> i ( L java/lang/String ;L java/lang/String ;) I
const/16 p1 , 0x6d
:cond_1
return p1
.end method
.method private shouldInheritContext ( L android/view/ViewParent ;) Z
.locals 3
const/4 v0 , 0x0
if-nez p1 , :cond_0
return v0
:cond_0
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v1 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object v1
:goto_0
if-nez p1 , :cond_1
const/4 p1 , 0x1
return p1
:cond_1
if-eq p1 , v1 , :cond_3
instance-of v2 , p1 , L android/view/View ;
if-eqz v2 , :cond_3
move-object v2 , p1
check-cast v2 , L android/view/View ;
invoke-static { v2 } , L androidx/core/view/ViewCompat ;-> isAttachedToWindow ( L android/view/View ;) Z
move-result v2
if-eqz v2 , :cond_2
goto :goto_1
:cond_2
invoke-interface { p1 } , L android/view/ViewParent ;-> getParent ( ) L android/view/ViewParent ;
move-result-object p1
goto :goto_0
:cond_3
:goto_1
return v0
.end method
2019-11-15 02:21:15 +00:00
.method private throwFeatureRequestIfSubDecorInstalled ( ) V
.locals 2
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecorInstalled : Z
if-nez v0 , :cond_0
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
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
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
throw v0
.end method
.method private tryUnwrapContext ( ) L androidx/appcompat/app/AppCompatActivity ;
.locals 3
2019-12-06 03:29:40 +00:00
.annotation build L androidx/annotation/Nullable ;
.end annotation
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
:goto_0
2019-07-24 11:27:29 +00:00
const/4 v1 , 0x0
if-eqz v0 , :cond_1
2019-11-15 02:21:15 +00:00
instance-of v2 , v0 , L androidx/appcompat/app/AppCompatActivity ;
if-eqz v2 , :cond_0
check-cast v0 , L androidx/appcompat/app/AppCompatActivity ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
return-object v0
:cond_0
instance-of v2 , v0 , L android/content/ContextWrapper ;
2019-07-24 11:27:29 +00:00
if-eqz v2 , :cond_1
2019-11-15 02:21:15 +00:00
check-cast v0 , L android/content/ContextWrapper ;
invoke-virtual { v0 } , L android/content/ContextWrapper ;-> getBaseContext ( ) L android/content/Context ;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-15 02:21:15 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:cond_1
return-object v1
.end method
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
.method private updateForNightMode ( IZ ) Z
2019-12-06 03:29:40 +00:00
.locals 7
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { v0 } , L android/content/Context ;-> getApplicationContext ( ) L android/content/Context ;
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v0
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { v0 } , L android/content/res/Resources ;-> getConfiguration ( ) L android/content/res/Configuration ;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-15 02:21:15 +00:00
iget v0 , v0 , L android/content/res/Configuration ;-> uiMode : I
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
and-int/lit8 v0 , v0 , 0x30
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
const/4 v1 , 0x1
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
if-eq p1 , v1 , :cond_1
const/4 v2 , 0x2
if-eq p1 , v2 , :cond_0
move v2 , v0
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
2019-11-15 02:21:15 +00:00
const/16 v2 , 0x20
goto :goto_0
:cond_1
const/16 v2 , 0x10
:goto_0
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> isActivityManifestHandlingUiMode ( ) Z
move-result v3
sget-boolean v4 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sAlwaysOverrideConfiguration : Z
2019-12-06 03:29:40 +00:00
const/4 v5 , 0x0
2019-11-15 02:21:15 +00:00
if-nez v4 , :cond_2
if-eq v2 , v0 , :cond_3
:cond_2
if-nez v3 , :cond_3
sget v0 , L android/os/Build$VERSION ;-> SDK_INT : I
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mBaseContextAttached : Z
if-nez v0 , :cond_3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v0 , v0 , L android/view/ContextThemeWrapper ;
if-eqz v0 , :cond_3
new-instance v0 , L android/content/res/Configuration ;
invoke-direct { v0 } , L android/content/res/Configuration ;-> <init> ( ) V
iget v4 , v0 , L android/content/res/Configuration ;-> uiMode : I
and-int/lit8 v4 , v4 , - 0x31
or-int/2addr v4 , v2
iput v4 , v0 , L android/content/res/Configuration ;-> uiMode : I
:try_start_0
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
check-cast v4 , L android/view/ContextThemeWrapper ;
invoke-virtual { v4 , v0 } , L android/view/ContextThemeWrapper ;-> applyOverrideConfiguration ( L android/content/res/Configuration ;) V
:try_end_0
.catch L java/lang/IllegalStateException ; { :try_start_0 . . :try_end_0 } :catch_0
2019-12-06 03:29:40 +00:00
const/4 v5 , 0x1
2019-11-15 02:21:15 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
:catch_0
move-exception v0
2019-11-15 02:21:15 +00:00
const-string v4 , "AppCompatDelegate"
2019-11-10 14:21:47 +00:00
2019-12-06 03:29:40 +00:00
const-string v6 , "updateForNightMode. Calling applyOverrideConfiguration() failed with an exception. Will fall back to using Resources.updateConfiguration()"
2019-11-10 14:21:47 +00:00
2019-12-06 03:29:40 +00:00
invoke-static { v4 , v6 , v0 } , L android/util/Log ;-> e ( L java/lang/String ;L java/lang/String ;L java/lang/Throwable ;) I
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
:cond_3
:goto_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v0
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { v0 } , L android/content/res/Resources ;-> getConfiguration ( ) L android/content/res/Configuration ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v0
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
iget v0 , v0 , L android/content/res/Configuration ;-> uiMode : I
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
and-int/lit8 v0 , v0 , 0x30
2019-11-10 14:21:47 +00:00
2019-12-06 03:29:40 +00:00
if-nez v5 , :cond_4
2019-11-10 14:21:47 +00:00
2019-12-06 03:29:40 +00:00
if-eq v0 , v2 , :cond_4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2 , :cond_4
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
if-nez v3 , :cond_4
2019-11-15 02:21:15 +00:00
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mBaseContextAttached : Z
2019-12-06 03:29:40 +00:00
if-eqz p2 , :cond_4
2019-11-15 02:21:15 +00:00
sget p2 , L android/os/Build$VERSION ;-> SDK_INT : I
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v4 , p2 , L android/app/Activity ;
2019-12-06 03:29:40 +00:00
if-eqz v4 , :cond_4
2019-11-15 02:21:15 +00:00
check-cast p2 , L android/app/Activity ;
invoke-static { p2 } , L androidx/core/app/ActivityCompat ;-> recreate ( L android/app/Activity ;) V
2019-12-06 03:29:40 +00:00
const/4 v5 , 0x1
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
:cond_4
if-nez v5 , :cond_5
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
if-eq v0 , v2 , :cond_5
2019-11-15 02:21:15 +00:00
invoke-direct { p0 , v2 , v3 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> updateResourcesConfigurationForNightMode ( IZ ) V
goto :goto_2
2019-12-06 03:29:40 +00:00
:cond_5
move v1 , v5
2019-11-15 02:21:15 +00:00
:goto_2
2019-12-06 03:29:40 +00:00
if-eqz v1 , :cond_6
2019-11-15 02:21:15 +00:00
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v0 , p2 , L androidx/appcompat/app/AppCompatActivity ;
2019-12-06 03:29:40 +00:00
if-eqz v0 , :cond_6
2019-11-15 02:21:15 +00:00
check-cast p2 , L androidx/appcompat/app/AppCompatActivity ;
invoke-virtual { p2 , p1 } , L androidx/appcompat/app/AppCompatActivity ;-> onNightModeChanged ( I ) V
2019-12-06 03:29:40 +00:00
:cond_6
2019-11-15 02:21:15 +00:00
return v1
2019-11-14 21:08:15 +00:00
.end method
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
.method private updateResourcesConfigurationForNightMode ( IZ ) V
.locals 3
2019-07-24 11:27:29 +00:00
2019-11-10 14:21:47 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { v0 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v0
new-instance v1 , L android/content/res/Configuration ;
invoke-virtual { v0 } , L android/content/res/Resources ;-> getConfiguration ( ) L android/content/res/Configuration ;
move-result-object v2
invoke-direct { v1 , v2 } , L android/content/res/Configuration ;-> <init> ( L android/content/res/Configuration ;) V
invoke-virtual { v0 } , L android/content/res/Resources ;-> getConfiguration ( ) L android/content/res/Configuration ;
move-result-object v2
iget v2 , v2 , L android/content/res/Configuration ;-> uiMode : I
and-int/lit8 v2 , v2 , - 0x31
or-int/2addr p1 , v2
iput p1 , v1 , L android/content/res/Configuration ;-> uiMode : I
const/4 p1 , 0x0
invoke-virtual { v0 , v1 , p1 } , L android/content/res/Resources ;-> updateConfiguration ( L android/content/res/Configuration ;L android/util/DisplayMetrics ;) V
sget p1 , L android/os/Build$VERSION ;-> SDK_INT : I
const/16 v2 , 0x1a
if-ge p1 , v2 , :cond_0
invoke-static { v0 } , L androidx/appcompat/app/ResourcesFlusher ;-> flush ( L android/content/res/Resources ;) V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:cond_0
iget p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mThemeResId : I
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-eqz p1 , :cond_1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { v0 , p1 } , L android/content/Context ;-> setTheme ( I ) V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
sget p1 , L android/os/Build$VERSION ;-> SDK_INT : I
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const/16 v0 , 0x17
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-lt p1 , v0 , :cond_1
2019-10-11 21:55:41 +00:00
2019-11-15 02:21:15 +00:00
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
2019-10-11 21:55:41 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { p1 } , L android/content/Context ;-> getTheme ( ) L android/content/res/Resources$Theme ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mThemeResId : I
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
const/4 v2 , 0x1
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { p1 , v0 , v2 } , L android/content/res/Resources$Theme ;-> applyStyle ( IZ ) V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:cond_1
2019-12-06 03:29:40 +00:00
if-eqz p2 , :cond_3
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
instance-of p2 , p1 , L android/app/Activity ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2 , :cond_3
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
check-cast p1 , L android/app/Activity ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
instance-of p2 , p1 , L androidx/lifecycle/LifecycleOwner ;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2 , :cond_2
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-object p2 , p1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
check-cast p2 , L androidx/lifecycle/LifecycleOwner ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-interface { p2 } , L androidx/lifecycle/LifecycleOwner ;-> getLifecycle ( ) L androidx/lifecycle/Lifecycle ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object p2
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { p2 } , L androidx/lifecycle/Lifecycle ;-> getCurrentState ( ) L androidx/lifecycle/Lifecycle$State ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object p2
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
sget-object v0 , L androidx/lifecycle/Lifecycle$State ;-> STARTED : L androidx/lifecycle/Lifecycle$State ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { p2 , v0 } , L androidx/lifecycle/Lifecycle$State ;-> isAtLeast ( L androidx/lifecycle/Lifecycle$State ;) Z
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result p2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2 , :cond_3
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { p1 , v1 } , L android/app/Activity ;-> onConfigurationChanged ( L android/content/res/Configuration ;) V
2019-10-11 21:55:41 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-11-10 14:21:47 +00:00
2019-12-06 03:29:40 +00:00
:cond_2
2019-11-15 02:21:15 +00:00
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStarted : Z
2019-11-14 21:08:15 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2 , :cond_3
2019-11-15 02:21:15 +00:00
invoke-virtual { p1 , v1 } , L android/app/Activity ;-> onConfigurationChanged ( L android/content/res/Configuration ;) V
2019-12-06 03:29:40 +00:00
:cond_3
:goto_0
2019-11-15 02:21:15 +00:00
return-void
2019-07-24 11:27:29 +00:00
.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
2019-11-15 02:21:15 +00:00
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2019-12-06 03:29:40 +00:00
invoke-virtual { p1 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
2019-11-15 02:21:15 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
invoke-interface { p1 } , L android/view/Window$Callback ;-> onContentChanged ( ) V
return-void
.end method
.method public applyDayNight ( ) Z
2019-11-15 02:21:15 +00:00
.locals 1
2019-10-11 21:55:41 +00:00
2019-11-15 02:21:15 +00:00
const/4 v0 , 0x1
2019-10-11 21:55:41 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( Z ) Z
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
move-result v0
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
return v0
.end method
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
.method public attachBaseContext ( L android/content/Context ;) V
.locals 0
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
const/4 p1 , 0x0
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( Z ) Z
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
const/4 p1 , 0x1
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
iput-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mBaseContextAttached : Z
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
return-void
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public callOnPanelClosed ( I L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;L android/view/Menu ;) V
2019-07-24 11:27:29 +00:00
.locals 2
if-nez p3 , :cond_1
if-nez p2 , :cond_0
if-ltz p1 , :cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mPanels : [ L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
array-length v1 , v0
if-ge p1 , v1 , :cond_0
aget-object p2 , v0 , p1
:cond_0
if-eqz p2 , :cond_1
iget-object p3 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
:cond_1
if-eqz p2 , :cond_2
iget-boolean p2 , p2 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> isOpen : Z
if-nez p2 , :cond_2
return-void
:cond_2
iget-boolean p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez p2 , :cond_3
2019-11-15 02:21:15 +00:00
iget-object p2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2019-12-06 03:29:40 +00:00
invoke-virtual { p2 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
2019-11-15 02:21:15 +00:00
move-result-object p2
2019-07-24 11:27:29 +00:00
invoke-interface { p2 , p1 , p3 } , L android/view/Window$Callback ;-> onPanelClosed ( I L android/view/Menu ;) V
:cond_3
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public checkCloseActionMenu ( L androidx/appcompat/view/menu/MenuBuilder ;) V
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public closePanel ( I ) V
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
2019-07-24 11:27:29 +00:00
.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
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
2019-12-06 03:29:40 +00:00
. 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
2019-07-24 11:27:29 +00:00
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
2019-08-30 20:04:20 +00:00
.catchall { :try_start_0 . . :try_end_0 } :catchall_0
2019-07-24 11:27:29 +00:00
goto :goto_1
2019-08-30 20:04:20 +00:00
:catchall_0
2019-07-24 11:27:29 +00:00
move-exception v2
new-instance v3 , L java/lang/StringBuilder ;
2019-12-06 03:29:40 +00:00
invoke-direct { v3 } , L java/lang/StringBuilder ;-> <init> ( ) V
2019-07-24 11:27:29 +00:00
const-string v4 , "Failed to instantiate custom view inflater "
2019-12-06 03:29:40 +00:00
invoke-virtual { v3 , v4 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
2019-07-24 11:27:29 +00:00
invoke-virtual { v3 , v0 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
const-string v0 , ". Falling back to default."
invoke-virtual { v3 , v0 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
invoke-virtual { v3 } , L java/lang/StringBuilder ;-> toString ( ) L java/lang/String ;
move-result-object v0
const-string v3 , "AppCompatDelegate"
invoke-static { v3 , v0 , v2 } , L android/util/Log ;-> i ( L java/lang/String ;L java/lang/String ;L java/lang/Throwable ;) I
new-instance v0 , L androidx/appcompat/app/AppCompatViewInflater ;
invoke-direct { v0 } , L androidx/appcompat/app/AppCompatViewInflater ;-> <init> ( ) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
goto :goto_1
:cond_1
:goto_0
new-instance v0 , L androidx/appcompat/app/AppCompatViewInflater ;
invoke-direct { v0 } , L androidx/appcompat/app/AppCompatViewInflater ;-> <init> ( ) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
:cond_2
:goto_1
sget-boolean v0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> IS_PRE_LOLLIPOP : Z
if-eqz v0 , :cond_5
instance-of v0 , p4 , L org/xmlpull/v1/XmlPullParser ;
const/4 v2 , 0x1
if-eqz v0 , :cond_3
move-object v0 , p4
check-cast v0 , L org/xmlpull/v1/XmlPullParser ;
invoke-interface { v0 } , L org/xmlpull/v1/XmlPullParser ;-> getDepth ( ) I
move-result v0
if-le v0 , v2 , :cond_4
const/4 v1 , 0x1
goto :goto_2
:cond_3
move-object v0 , p1
check-cast v0 , L android/view/ViewParent ;
invoke-direct { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> shouldInheritContext ( L android/view/ViewParent ;) Z
move-result v0
move v1 , v0
:cond_4
:goto_2
move v7 , v1
goto :goto_3
:cond_5
const/4 v7 , 0x0
:goto_3
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatViewInflater : L androidx/appcompat/app/AppCompatViewInflater ;
sget-boolean v8 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> IS_PRE_LOLLIPOP : Z
const/4 v9 , 0x1
invoke-static { } , L androidx/appcompat/widget/VectorEnabledTintResources ;-> shouldBeUsed ( ) Z
move-result v10
move-object v3 , p1
move-object v4 , p2
move-object v5 , p3
move-object v6 , p4
invoke-virtual/range { v2 . . v10 } , L androidx/appcompat/app/AppCompatViewInflater ;-> createView ( L android/view/View ;L java/lang/String ;L android/content/Context ;L android/util/AttributeSet ;ZZZZ ) L android/view/View ;
move-result-object p1
return-object p1
.end method
2019-12-06 03:29:40 +00:00
.method public dismissPopups ( ) V
2019-07-24 11:27:29 +00:00
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mDecorContentParent : L androidx/appcompat/widget/DecorContentParent ;
if-eqz v0 , :cond_0
invoke-interface { v0 } , L androidx/appcompat/widget/DecorContentParent ;-> dismissPopups ( ) V
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
if-eqz v0 , :cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object v0
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mShowActionModePopup : L java/lang/Runnable ;
invoke-virtual { v0 , v1 } , L android/view/View ;-> removeCallbacks ( L java/lang/Runnable ;) Z
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
invoke-virtual { v0 } , L android/widget/PopupWindow ;-> isShowing ( ) Z
move-result v0
if-eqz v0 , :cond_1
:try_start_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
invoke-virtual { v0 } , L android/widget/PopupWindow ;-> dismiss ( ) V
:try_end_0
.catch L java/lang/IllegalArgumentException ; { :try_start_0 . . :try_end_0 } :catch_0
:catch_0
:cond_1
const/4 v0 , 0x0
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
:cond_2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> endOnGoingFadeAnimation ( ) V
const/4 v0 , 0x0
invoke-virtual { p0 , v0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
move-result-object v0
if-eqz v0 , :cond_3
iget-object v0 , v0 , L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;-> menu : L androidx/appcompat/view/menu/MenuBuilder ;
2019-12-06 03:29:40 +00:00
if-eqz v0 , :cond_3
2019-07-24 11:27:29 +00:00
invoke-virtual { v0 } , L androidx/appcompat/view/menu/MenuBuilder ;-> close ( ) V
:cond_3
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public dispatchKeyEvent ( L android/view/KeyEvent ;) Z
2019-07-24 11:27:29 +00:00
.locals 3
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
2019-07-24 11:27:29 +00:00
instance-of v1 , v0 , L androidx/core/view/KeyEventDispatcher$Component ;
const/4 v2 , 0x1
if-nez v1 , :cond_0
instance-of v0 , v0 , L androidx/appcompat/app/AppCompatDialog ;
if-eqz v0 , :cond_1
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object v0
if-eqz v0 , :cond_1
invoke-static { v0 , p1 } , L androidx/core/view/KeyEventDispatcher ;-> dispatchBeforeHierarchy ( L android/view/View ;L android/view/KeyEvent ;) Z
move-result v0
if-eqz v0 , :cond_1
return v2
:cond_1
invoke-virtual { p1 } , L android/view/KeyEvent ;-> getKeyCode ( ) I
move-result v0
const/16 v1 , 0x52
if-ne v0 , v1 , :cond_2
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2019-12-06 03:29:40 +00:00
invoke-virtual { v0 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
2019-11-15 02:21:15 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
invoke-interface { v0 , p1 } , L android/view/Window$Callback ;-> dispatchKeyEvent ( L android/view/KeyEvent ;) Z
move-result v0
if-eqz v0 , :cond_2
return v2
:cond_2
invoke-virtual { p1 } , L android/view/KeyEvent ;-> getKeyCode ( ) I
move-result v0
invoke-virtual { p1 } , L android/view/KeyEvent ;-> getAction ( ) I
move-result v1
if-nez v1 , :cond_3
goto :goto_0
:cond_3
const/4 v2 , 0x0
:goto_0
if-eqz v2 , :cond_4
invoke-virtual { p0 , v0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onKeyDown ( I L android/view/KeyEvent ;) Z
move-result p1
2019-12-06 03:29:40 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
:cond_4
invoke-virtual { p0 , v0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> onKeyUp ( I L android/view/KeyEvent ;) Z
move-result p1
2019-12-06 03:29:40 +00:00
:goto_1
2019-07-24 11:27:29 +00:00
return p1
.end method
2019-12-06 03:29:40 +00:00
.method public doInvalidatePanelMenu ( I ) V
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public endOnGoingFadeAnimation ( ) V
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public findMenuPanel ( L android/view/Menu ;) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
. param p1 # I
.annotation build L androidx/annotation/IdRes ;
.end annotation
. end param
.annotation build L androidx/annotation/Nullable ;
.end annotation
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public final getActionBarThemedContext ( ) L android/content/Context ;
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public final getAutoTimeNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
2019-11-15 02:21:15 +00:00
.locals 2
2019-12-06 03:29:40 +00:00
.annotation build L androidx/annotation/NonNull ;
.end annotation
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
if-nez v0 , :cond_0
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager ;
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-static { v1 } , L androidx/appcompat/app/TwilightManager ;-> getInstance ( L android/content/Context ;) L androidx/appcompat/app/TwilightManager ;
move-result-object v1
invoke-direct { v0 , p0 , v1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L androidx/appcompat/app/TwilightManager ;) V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAutoTimeNightModeManager : L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
2019-07-24 11:27:29 +00:00
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
2019-11-15 02:21:15 +00:00
.method public getLocalNightMode ( ) I
.locals 1
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
return v0
.end method
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public getPanelState ( IZ ) L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public getSubDecor ( ) L android/view/ViewGroup ;
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public final getTitle ( ) L java/lang/CharSequence ;
2019-07-24 11:27:29 +00:00
.locals 2
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
2019-07-24 11:27:29 +00:00
instance-of v1 , v0 , L android/app/Activity ;
if-eqz v1 , :cond_0
check-cast v0 , L android/app/Activity ;
invoke-virtual { v0 } , L android/app/Activity ;-> getTitle ( ) L java/lang/CharSequence ;
move-result-object v0
return-object v0
:cond_0
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mTitle : L java/lang/CharSequence ;
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public final getWindowCallback ( ) L android/view/Window$Callback ;
2019-07-24 11:27:29 +00:00
.locals 1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 } , L android/view/Window ;-> getCallback ( ) L android/view/Window$Callback ;
move-result-object v0
return-object v0
.end method
.method public hasWindowFeature ( I ) Z
.locals 4
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sanitizeWindowFeatureId ( I ) I
move-result v0
const/4 v1 , 0x1
const/4 v2 , 0x0
if-eq v0 , v1 , :cond_5
const/4 v3 , 0x2
if-eq v0 , v3 , :cond_4
const/4 v3 , 0x5
if-eq v0 , v3 , :cond_3
const/16 v3 , 0xa
if-eq v0 , v3 , :cond_2
const/16 v3 , 0x6c
if-eq v0 , v3 , :cond_1
const/16 v3 , 0x6d
if-eq v0 , v3 , :cond_0
const/4 v0 , 0x0
goto :goto_0
:cond_0
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
goto :goto_0
:cond_1
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
goto :goto_0
:cond_2
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionMode : Z
goto :goto_0
:cond_3
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureIndeterminateProgress : Z
goto :goto_0
:cond_4
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureProgress : Z
goto :goto_0
:cond_5
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindowNoTitle : Z
:goto_0
if-nez v0 , :cond_7
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 , p1 } , L android/view/Window ;-> hasFeature ( I ) Z
move-result p1
if-eqz p1 , :cond_6
goto :goto_1
:cond_6
2019-12-06 03:29:40 +00:00
const/4 v1 , 0x0
2019-07-24 11:27:29 +00:00
:cond_7
:goto_1
return v1
.end method
.method public installViewFactory ( ) V
.locals 2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-static { v0 } , L android/view/LayoutInflater ;-> from ( L android/content/Context ;) L android/view/LayoutInflater ;
move-result-object v0
invoke-virtual { v0 } , L android/view/LayoutInflater ;-> getFactory ( ) L android/view/LayoutInflater$Factory ;
move-result-object v1
if-nez v1 , :cond_0
invoke-static { v0 , p0 } , L androidx/core/view/LayoutInflaterCompat ;-> setFactory2 ( L android/view/LayoutInflater ;L android/view/LayoutInflater$Factory2 ;) V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
: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
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
.method public mapNightMode ( I ) I
2019-07-24 11:27:29 +00:00
.locals 2
const/16 v0 , - 0x64
const/4 v1 , - 0x1
2019-11-15 02:21:15 +00:00
if-eq p1 , v0 , :cond_4
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
if-eq p1 , v1 , :cond_3
if-eqz p1 , :cond_1
const/4 v0 , 0x1
if-eq p1 , v0 , :cond_3
const/4 v0 , 0x2
if-eq p1 , v0 , :cond_3
const/4 v0 , 0x3
if-ne p1 , v0 , :cond_0
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getAutoBatteryNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
move-result-object p1
invoke-virtual { p1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> getApplyableNightMode ( ) I
move-result p1
2019-07-24 11:27:29 +00:00
return p1
:cond_0
2019-11-15 02:21:15 +00:00
new-instance p1 , L java/lang/IllegalStateException ;
const-string v0 , "Unknown value set for night mode. Please use one of the MODE_NIGHT values from AppCompatDelegate."
invoke-direct { p1 , v0 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
:cond_1
2019-07-24 11:27:29 +00:00
sget p1 , L android/os/Build$VERSION ;-> SDK_INT : I
const/16 v0 , 0x17
2019-11-15 02:21:15 +00:00
if-lt p1 , v0 , :cond_2
2019-07-24 11:27:29 +00:00
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
2019-11-15 02:21:15 +00:00
if-nez p1 , :cond_2
2019-07-24 11:27:29 +00:00
return v1
2019-11-15 02:21:15 +00:00
:cond_2
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getAutoTimeNightModeManager ( ) L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
invoke-virtual { p1 } , L androidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager ;-> getApplyableNightMode ( ) I
move-result p1
2019-11-15 02:21:15 +00:00
:cond_3
2019-07-24 11:27:29 +00:00
return p1
2019-11-15 02:21:15 +00:00
:cond_4
2019-07-24 11:27:29 +00:00
return v1
.end method
2019-12-06 03:29:40 +00:00
.method public onBackPressed ( ) Z
2019-07-24 11:27:29 +00:00
.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
2019-11-15 02:21:15 +00:00
const/4 p1 , 0x0
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( Z ) Z
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public onCreate ( L android/os/Bundle ;) V
.locals 2
2019-11-15 02:21:15 +00:00
const/4 p1 , 0x1
iput-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mBaseContextAttached : Z
const/4 v0 , 0x0
invoke-direct { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( Z ) Z
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureWindow ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
2019-07-24 11:27:29 +00:00
instance-of v1 , v0 , L android/app/Activity ;
if-eqz v1 , :cond_1
const/4 v1 , 0x0
:try_start_0
check-cast v0 , L android/app/Activity ;
invoke-static { v0 } , L androidx/core/app/NavUtils ;-> getParentActivityName ( L android/app/Activity ;) L java/lang/String ;
move-result-object v1
:try_end_0
.catch L java/lang/IllegalArgumentException ; { :try_start_0 . . :try_end_0 } :catch_0
2019-08-30 20:04:20 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:catch_0
2019-08-30 20:04:20 +00:00
nop
:goto_0
2019-07-24 11:27:29 +00:00
if-eqz v1 , :cond_1
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object v0
if-nez v0 , :cond_0
2019-11-15 02:21:15 +00:00
iput-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mEnableDefaultActionBarUp : Z
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
:cond_0
2019-11-15 02:21:15 +00:00
invoke-virtual { v0 , p1 } , L androidx/appcompat/app/ActionBar ;-> setDefaultDisplayHomeAsUpEnabled ( Z ) V
2019-07-24 11:27:29 +00:00
:cond_1
2019-08-30 20:04:20 +00:00
:goto_1
2019-11-15 02:21:15 +00:00
iput-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mCreated : Z
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
invoke-static { p0 } , L androidx/appcompat/app/AppCompatDelegate ;-> markStopped ( L androidx/appcompat/app/AppCompatDelegate ;) V
2019-11-15 02:21:15 +00:00
2019-07-24 11:27:29 +00:00
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
2019-11-15 02:21:15 +00:00
const/4 v0 , 0x0
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStarted : Z
2019-07-24 11:27:29 +00:00
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
2019-11-15 02:21:15 +00:00
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> cleanupAutoManagers ( ) V
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public onKeyDown ( I L android/view/KeyEvent ;) Z
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public onKeyShortcut ( I L android/view/KeyEvent ;) Z
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public onKeyUp ( I L android/view/KeyEvent ;) Z
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public onMenuOpened ( I ) V
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public onPanelClosed ( I ) V
2019-07-24 11:27:29 +00:00
.locals 2
const/4 v0 , 0x0
const/16 v1 , 0x6c
2019-12-06 03:29:40 +00:00
if-ne p1 , v1 , :cond_0
2019-07-24 11:27:29 +00:00
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
move-result-object p1
2019-12-06 03:29:40 +00:00
if-eqz p1 , :cond_1
2019-07-24 11:27:29 +00:00
invoke-virtual { p1 , v0 } , L androidx/appcompat/app/ActionBar ;-> dispatchMenuVisibilityChanged ( Z ) V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
if-nez p1 , :cond_1
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
if-eqz v1 , :cond_1
2019-07-24 11:27:29 +00:00
invoke-virtual { p0 , p1 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> closePanel ( L androidx/appcompat/app/AppCompatDelegateImpl$PanelFeatureState ;Z ) V
2019-12-06 03:29:40 +00:00
:cond_1
:goto_0
2019-07-24 11:27:29 +00:00
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
2019-11-15 02:21:15 +00:00
iget p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
const/16 v0 , - 0x64
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-eq p1 , v0 , :cond_0
sget-object p1 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sLocalNightModes : L java/util/Map ;
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
invoke-virtual { v0 } , L java/lang/Object ;-> getClass ( ) L java/lang/Class ;
move-result-object v0
iget v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
invoke-static { v1 } , L java/lang/Integer ;-> valueOf ( I ) L java/lang/Integer ;
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v1
invoke-interface { p1 , v0 , v1 } , L java/util/Map ;-> put ( L java/lang/Object ;L java/lang/Object ;) L java/lang/Object ;
2019-07-24 11:27:29 +00:00
:cond_0
return-void
.end method
.method public onStart ( ) V
2019-11-15 02:21:15 +00:00
.locals 1
const/4 v0 , 0x1
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStarted : Z
2019-07-24 11:27:29 +00:00
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( ) Z
2019-12-06 03:29:40 +00:00
invoke-static { p0 } , L androidx/appcompat/app/AppCompatDelegate ;-> markStarted ( L androidx/appcompat/app/AppCompatDelegate ;) V
2019-11-15 02:21:15 +00:00
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public onStop ( ) V
.locals 2
2019-11-15 02:21:15 +00:00
const/4 v0 , 0x0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iput-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStarted : Z
2019-11-10 14:21:47 +00:00
2019-12-06 03:29:40 +00:00
invoke-static { p0 } , L androidx/appcompat/app/AppCompatDelegate ;-> markStopped ( L androidx/appcompat/app/AppCompatDelegate ;) V
2019-11-10 14:21:47 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
2019-10-07 23:23:22 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v1
if-eqz v1 , :cond_0
invoke-virtual { v1 , v0 } , L androidx/appcompat/app/ActionBar ;-> setShowHideAnimationEnabled ( Z ) V
2019-11-10 14:21:47 +00:00
2019-11-14 21:08:15 +00:00
:cond_0
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
instance-of v0 , v0 , L android/app/Dialog ;
2019-07-24 11:27:29 +00:00
if-eqz v0 , :cond_1
2019-11-15 02:21:15 +00:00
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> cleanupAutoManagers ( ) V
2019-07-24 11:27:29 +00:00
:cond_1
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public onSubDecorInstalled ( L android/view/ViewGroup ;) V
2019-07-24 11:27:29 +00:00
.locals 0
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public final peekSupportActionBar ( ) L androidx/appcompat/app/ActionBar ;
2019-07-24 11:27:29 +00:00
.locals 1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
return-object v0
.end method
.method public requestWindowFeature ( I ) Z
.locals 4
invoke-direct { p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> sanitizeWindowFeatureId ( I ) I
move-result p1
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindowNoTitle : Z
const/4 v1 , 0x0
const/16 v2 , 0x6c
if-eqz v0 , :cond_0
if-ne p1 , v2 , :cond_0
return v1
:cond_0
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
const/4 v3 , 0x1
if-eqz v0 , :cond_1
if-ne p1 , v3 , :cond_1
iput-boolean v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
:cond_1
if-eq p1 , v3 , :cond_7
const/4 v0 , 0x2
if-eq p1 , v0 , :cond_6
const/4 v0 , 0x5
if-eq p1 , v0 , :cond_5
const/16 v0 , 0xa
if-eq p1 , v0 , :cond_4
if-eq p1 , v2 , :cond_3
const/16 v0 , 0x6d
if-eq p1 , v0 , :cond_2
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 , p1 } , L android/view/Window ;-> requestFeature ( I ) Z
move-result p1
return p1
:cond_2
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionBar : Z
return v3
:cond_3
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHasActionBar : Z
return v3
:cond_4
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mOverlayActionMode : Z
return v3
:cond_5
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureIndeterminateProgress : Z
return v3
:cond_6
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mFeatureProgress : Z
return v3
:cond_7
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> throwFeatureRequestIfSubDecorInstalled ( ) V
iput-boolean v3 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindowNoTitle : Z
return v3
.end method
.method public setContentView ( I ) V
.locals 2
invoke-direct { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> ensureSubDecor ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mSubDecor : L android/view/ViewGroup ;
const v1 , 0x1020002
invoke-virtual { v0 , v1 } , L android/view/ViewGroup ;-> findViewById ( I ) L android/view/View ;
move-result-object v0
check-cast v0 , L android/view/ViewGroup ;
invoke-virtual { v0 } , L android/view/ViewGroup ;-> removeAllViews ( ) V
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-static { v1 } , L android/view/LayoutInflater ;-> from ( L android/content/Context ;) L android/view/LayoutInflater ;
move-result-object v1
invoke-virtual { v1 , p1 , v0 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;) L android/view/View ;
2019-11-15 02:21:15 +00:00
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2019-12-06 03:29:40 +00:00
invoke-virtual { p1 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
2019-11-15 02:21:15 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
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
2019-11-15 02:21:15 +00:00
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2019-12-06 03:29:40 +00:00
invoke-virtual { p1 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
2019-11-15 02:21:15 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
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
2019-11-15 02:21:15 +00:00
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2019-12-06 03:29:40 +00:00
invoke-virtual { p1 } , L androidx/appcompat/view/WindowCallbackWrapper ;-> getWrapped ( ) L android/view/Window$Callback ;
2019-11-15 02:21:15 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
invoke-interface { p1 } , L android/view/Window$Callback ;-> onContentChanged ( ) V
return-void
.end method
.method public setHandleNativeActionModesEnabled ( Z ) V
.locals 0
iput-boolean p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHandleNativeActionModes : Z
return-void
.end method
.method public setLocalNightMode ( I ) V
.locals 1
iget v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
2019-11-15 02:21:15 +00:00
if-eq v0 , p1 , :cond_0
2019-07-24 11:27:29 +00:00
iput p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mLocalNightMode : I
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> applyDayNight ( ) Z
2019-11-15 02:21:15 +00:00
:cond_0
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public setSupportActionBar ( L androidx/appcompat/widget/Toolbar ;) V
.locals 3
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mHost : L java/lang/Object ;
2019-07-24 11:27:29 +00:00
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 ;
2019-11-15 02:21:15 +00:00
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> getTitle ( ) L java/lang/CharSequence ;
2019-07-24 11:27:29 +00:00
move-result-object v1
2019-11-15 02:21:15 +00:00
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2019-07-24 11:27:29 +00:00
invoke-direct { v0 , p1 , v1 , v2 } , L androidx/appcompat/app/ToolbarActionBar ;-> <init> ( L androidx/appcompat/widget/Toolbar ;L java/lang/CharSequence ;L android/view/Window$Callback ;) V
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { v0 } , L androidx/appcompat/app/ToolbarActionBar ;-> getWrappedWindowCallback ( ) L android/view/Window$Callback ;
move-result-object v0
invoke-virtual { p1 , v0 } , L android/view/Window ;-> setCallback ( L android/view/Window$Callback ;) V
goto :goto_0
:cond_2
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionBar : L androidx/appcompat/app/ActionBar ;
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
2019-11-15 02:21:15 +00:00
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatWindowCallback : L androidx/appcompat/app/AppCompatDelegateImpl$AppCompatWindowCallback ;
2019-07-24 11:27:29 +00:00
invoke-virtual { p1 , v0 } , L android/view/Window ;-> setCallback ( L android/view/Window$Callback ;) V
:goto_0
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> invalidateOptionsMenu ( ) V
return-void
:cond_3
new-instance p1 , L java/lang/IllegalStateException ;
const-string v0 , "This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead."
invoke-direct { p1 , v0 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
.end method
2019-11-15 02:21:15 +00:00
.method public setTheme ( I ) V
.locals 0
2019-12-06 03:29:40 +00:00
. param p1 # I
.annotation build L androidx/annotation/StyleRes ;
.end annotation
. end param
2019-11-15 02:21:15 +00:00
iput p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mThemeResId : I
return-void
.end method
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
: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
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
: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
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public final shouldAnimateActionModeView ( ) Z
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 v0 , 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return v0
.end method
.method public startSupportActionMode ( L androidx/appcompat/view/ActionMode$Callback ;) L androidx/appcompat/view/ActionMode ;
.locals 2
2019-12-06 03:29:40 +00:00
. param p1 # Landroidx/appcompat/view/ActionMode$Callback;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
2019-07-24 11:27:29 +00:00
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
iget-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
if-eqz v1 , :cond_1
invoke-interface { v1 , p1 } , L androidx/appcompat/app/AppCompatCallback ;-> onSupportActionModeStarted ( L androidx/appcompat/view/ActionMode ;) V
:cond_1
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
if-nez p1 , :cond_2
invoke-virtual { p0 , v0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> startSupportActionModeFromWindow ( L androidx/appcompat/view/ActionMode$Callback ;) L androidx/appcompat/view/ActionMode ;
move-result-object p1
iput-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
:cond_2
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
return-object p1
:cond_3
new-instance p1 , L java/lang/IllegalArgumentException ;
const-string v0 , "ActionMode callback can not be null."
invoke-direct { p1 , v0 } , L java/lang/IllegalArgumentException ;-> <init> ( L java/lang/String ;) V
throw p1
.end method
2019-12-06 03:29:40 +00:00
.method public startSupportActionModeFromWindow ( L androidx/appcompat/view/ActionMode$Callback ;) L androidx/appcompat/view/ActionMode ;
2019-07-24 11:27:29 +00:00
.locals 7
2019-12-06 03:29:40 +00:00
. param p1 # Landroidx/appcompat/view/ActionMode$Callback;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
2019-07-24 11:27:29 +00:00
invoke-virtual { p0 } , L androidx/appcompat/app/AppCompatDelegateImpl ;-> endOnGoingFadeAnimation ( ) V
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
if-eqz v0 , :cond_0
invoke-virtual { v0 } , L androidx/appcompat/view/ActionMode ;-> finish ( ) V
:cond_0
instance-of v0 , p1 , L androidx/appcompat/app/AppCompatDelegateImpl$ActionModeCallbackWrapperV9 ;
if-nez v0 , :cond_1
new-instance v0 , L androidx/appcompat/app/AppCompatDelegateImpl$ActionModeCallbackWrapperV9 ;
invoke-direct { v0 , p0 , p1 } , L androidx/appcompat/app/AppCompatDelegateImpl$ActionModeCallbackWrapperV9 ;-> <init> ( L androidx/appcompat/app/AppCompatDelegateImpl ;L androidx/appcompat/view/ActionMode$Callback ;) V
move-object p1 , v0
:cond_1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
const/4 v1 , 0x0
if-eqz v0 , :cond_2
iget-boolean v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsDestroyed : Z
if-nez v2 , :cond_2
:try_start_0
invoke-interface { v0 , p1 } , L androidx/appcompat/app/AppCompatCallback ;-> onWindowStartingSupportActionMode ( L androidx/appcompat/view/ActionMode$Callback ;) L androidx/appcompat/view/ActionMode ;
move-result-object v0
:try_end_0
.catch L java/lang/AbstractMethodError ; { :try_start_0 . . :try_end_0 } :catch_0
goto :goto_0
:catch_0
:cond_2
move-object v0 , v1
:goto_0
if-eqz v0 , :cond_3
iput-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
goto/16 :goto_5
:cond_3
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
const/4 v2 , 0x0
const/4 v3 , 0x1
if-nez v0 , :cond_6
iget-boolean v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mIsFloating : Z
if-eqz v0 , :cond_5
new-instance v0 , L android/util/TypedValue ;
invoke-direct { v0 } , L android/util/TypedValue ;-> <init> ( ) V
iget-object v4 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v4 } , L android/content/Context ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v4
sget v5 , L androidx/appcompat/R$attr ;-> actionBarTheme : I
invoke-virtual { v4 , v5 , v0 , v3 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
iget v5 , v0 , L android/util/TypedValue ;-> resourceId : I
if-eqz v5 , :cond_4
iget-object v5 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-virtual { v5 } , L android/content/Context ;-> getResources ( ) L android/content/res/Resources ;
move-result-object v5
invoke-virtual { v5 } , L android/content/res/Resources ;-> newTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v5
invoke-virtual { v5 , v4 } , L android/content/res/Resources$Theme ;-> setTo ( L android/content/res/Resources$Theme ;) V
iget v4 , v0 , L android/util/TypedValue ;-> resourceId : I
invoke-virtual { v5 , v4 , v3 } , L android/content/res/Resources$Theme ;-> applyStyle ( IZ ) V
new-instance v4 , L androidx/appcompat/view/ContextThemeWrapper ;
iget-object v6 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mContext : L android/content/Context ;
invoke-direct { v4 , v6 , v2 } , L androidx/appcompat/view/ContextThemeWrapper ;-> <init> ( L android/content/Context ;I ) V
2019-12-06 03:29:40 +00:00
invoke-virtual { v4 } , L androidx/appcompat/view/ContextThemeWrapper ;-> getTheme ( ) L android/content/res/Resources$Theme ;
2019-07-24 11:27:29 +00:00
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 ;
2019-12-06 03:29:40 +00:00
invoke-virtual { v4 } , L android/view/ViewGroup ;-> getContext ( ) L android/content/Context ;
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
invoke-virtual { v0 } , L androidx/appcompat/view/StandaloneActionMode ;-> getMenu ( ) L android/view/Menu ;
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
invoke-virtual { v0 } , L androidx/appcompat/view/StandaloneActionMode ;-> invalidate ( ) V
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
invoke-virtual { p1 , v1 } , L android/view/ViewGroup ;-> setAlpha ( F ) V
2019-07-24 11:27:29 +00:00
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 ;
2019-12-06 03:29:40 +00:00
invoke-virtual { p1 , v0 } , L android/view/ViewGroup ;-> setAlpha ( F ) V
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
invoke-virtual { p1 , v0 } , L android/view/ViewGroup ;-> sendAccessibilityEvent ( I ) V
2019-07-24 11:27:29 +00:00
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
2019-12-06 03:29:40 +00:00
invoke-virtual { p1 } , L android/view/ViewGroup ;-> getParent ( ) L android/view/ViewParent ;
2019-07-24 11:27:29 +00:00
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 ;
2019-12-06 03:29:40 +00:00
invoke-virtual { p1 } , L android/view/ViewGroup ;-> getParent ( ) L android/view/ViewParent ;
2019-07-24 11:27:29 +00:00
move-result-object p1
check-cast p1 , L android/view/View ;
invoke-static { p1 } , L androidx/core/view/ViewCompat ;-> requestApplyInsets ( L android/view/View ;) V
:cond_9
:goto_4
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModePopup : L android/widget/PopupWindow ;
if-eqz p1 , :cond_b
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mWindow : L android/view/Window ;
invoke-virtual { p1 } , L android/view/Window ;-> getDecorView ( ) L android/view/View ;
move-result-object p1
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mShowActionModePopup : L java/lang/Runnable ;
invoke-virtual { p1 , v0 } , L android/view/View ;-> post ( L java/lang/Runnable ;) Z
goto :goto_5
:cond_a
iput-object v1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
:cond_b
:goto_5
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
if-eqz p1 , :cond_c
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mAppCompatCallback : L androidx/appcompat/app/AppCompatCallback ;
if-eqz v0 , :cond_c
invoke-interface { v0 , p1 } , L androidx/appcompat/app/AppCompatCallback ;-> onSupportActionModeStarted ( L androidx/appcompat/view/ActionMode ;) V
:cond_c
iget-object p1 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionMode : L androidx/appcompat/view/ActionMode ;
return-object p1
.end method
2019-12-06 03:29:40 +00:00
.method public updateStatusGuard ( I ) I
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
invoke-virtual { v0 } , L android/view/ViewGroup ;-> getLayoutParams ( ) L android/view/ViewGroup$LayoutParams ;
2019-07-24 11:27:29 +00:00
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 ;
2019-12-06 03:29:40 +00:00
invoke-virtual { v0 } , L android/view/ViewGroup ;-> getLayoutParams ( ) L android/view/ViewGroup$LayoutParams ;
2019-07-24 11:27:29 +00:00
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 ;
2019-12-06 03:29:40 +00:00
invoke-virtual { v2 } , L android/view/ViewGroup ;-> isShown ( ) Z
2019-07-24 11:27:29 +00:00
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
goto :goto_5
: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
goto :goto_4
:cond_7
const/4 v2 , 0x0
:goto_4
const/4 v3 , 0x0
:cond_8
:goto_5
if-eqz v2 , :cond_a
iget-object v2 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mActionModeView : L androidx/appcompat/widget/ActionBarContextView ;
2019-12-06 03:29:40 +00:00
invoke-virtual { v2 , v0 } , L android/view/ViewGroup ;-> setLayoutParams ( L android/view/ViewGroup$LayoutParams ;) V
2019-07-24 11:27:29 +00:00
goto :goto_6
:cond_9
const/4 v3 , 0x0
:cond_a
:goto_6
iget-object v0 , p0 , L androidx/appcompat/app/AppCompatDelegateImpl ;-> mStatusGuard : L android/view/View ;
if-eqz v0 , :cond_c
if-eqz v3 , :cond_b
goto :goto_7
:cond_b
const/16 v1 , 0x8
:goto_7
invoke-virtual { v0 , v1 } , L android/view/View ;-> setVisibility ( I ) V
:cond_c
return p1
.end method