1976 lines
50 KiB
Smali
1976 lines
50 KiB
Smali
.class public final Lcom/blankj/utilcode/util/BarUtils;
|
|
.super Ljava/lang/Object;
|
|
.source "BarUtils.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final KEY_OFFSET:I = -0x7b
|
|
|
|
.field private static final TAG_OFFSET:Ljava/lang/String; = "TAG_OFFSET"
|
|
|
|
.field private static final TAG_STATUS_BAR:Ljava/lang/String; = "TAG_STATUS_BAR"
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 50
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 51
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v1, "u can\'t instantiate me..."
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static addMarginTopEqualStatusBarHeight(Landroid/view/View;)V
|
|
.locals 6
|
|
|
|
const-string v0, "Argument \'view\' of type View (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 167
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 168
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v0, "TAG_OFFSET"
|
|
|
|
.line 169
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
const/16 v0, -0x7b
|
|
|
|
.line 170
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 171
|
|
check-cast v1, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 172
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
.line 173
|
|
iget v2, v1, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
iget v3, v1, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
.line 174
|
|
invoke-static {}, Lcom/blankj/utilcode/util/BarUtils;->getStatusBarHeight()I
|
|
|
|
move-result v4
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
iget v4, v1, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
iget v5, v1, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
.line 173
|
|
invoke-virtual {v1, v2, v3, v4, v5}, Landroid/view/ViewGroup$MarginLayoutParams;->setMargins(IIII)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 177
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v0, v1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static addMarginTopEqualStatusBarHeight(Landroid/view/Window;)V
|
|
.locals 2
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 197
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 198
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 199
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "TAG_OFFSET"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 201
|
|
:cond_1
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->addMarginTopEqualStatusBarHeight(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static applyStatusBarColor(Landroid/app/Activity;IZ)Landroid/view/View;
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 3, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 352
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 355
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1, p2}, Lcom/blankj/utilcode/util/BarUtils;->applyStatusBarColor(Landroid/view/Window;IZ)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static applyStatusBarColor(Landroid/view/Window;IZ)Landroid/view/View;
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 3, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 358
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 362
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroid/view/ViewGroup;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const p2, 0x1020002
|
|
|
|
.line 363
|
|
invoke-virtual {p0, p2}, Landroid/view/Window;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroid/view/ViewGroup;
|
|
|
|
:goto_0
|
|
const-string v0, "TAG_STATUS_BAR"
|
|
|
|
.line 364
|
|
invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 366
|
|
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result p0
|
|
|
|
const/16 p2, 0x8
|
|
|
|
if-ne p0, p2, :cond_1
|
|
|
|
const/4 p0, 0x0
|
|
|
|
.line 367
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 369
|
|
:cond_1
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 371
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroid/view/Window;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1}, Lcom/blankj/utilcode/util/BarUtils;->createStatusBarView(Landroid/content/Context;I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
.line 372
|
|
invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static createStatusBarView(Landroid/content/Context;I)Landroid/view/View;
|
|
.locals 3
|
|
|
|
const-string v0, "Argument \'context\' of type Context (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 395
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 397
|
|
new-instance v0, Landroid/view/View;
|
|
|
|
invoke-direct {v0, p0}, Landroid/view/View;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 398
|
|
new-instance p0, Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
.line 399
|
|
invoke-static {}, Lcom/blankj/utilcode/util/BarUtils;->getStatusBarHeight()I
|
|
|
|
move-result v2
|
|
|
|
invoke-direct {p0, v1, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
|
|
|
|
.line 398
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 400
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
const-string p0, "TAG_STATUS_BAR"
|
|
|
|
.line 401
|
|
invoke-virtual {v0, p0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getActionBarHeight()I
|
|
.locals 4
|
|
|
|
.line 433
|
|
new-instance v0, Landroid/util/TypedValue;
|
|
|
|
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
|
|
|
|
.line 434
|
|
invoke-static {}, Lcom/blankj/utilcode/util/Utils;->getApp()Landroid/app/Application;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/app/Application;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object v1
|
|
|
|
const v2, 0x10102eb
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-virtual {v1, v2, v0, v3}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 435
|
|
iget v0, v0, Landroid/util/TypedValue;->data:I
|
|
|
|
.line 436
|
|
invoke-static {}, Lcom/blankj/utilcode/util/Utils;->getApp()Landroid/app/Application;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/app/Application;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
move-result-object v1
|
|
|
|
.line 435
|
|
invoke-static {v0, v1}, Landroid/util/TypedValue;->complexToDimensionPixelSize(ILandroid/util/DisplayMetrics;)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static getNavBarColor(Landroid/app/Activity;)I
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 627
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 628
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->getNavBarColor(Landroid/view/Window;)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static getNavBarColor(Landroid/view/Window;)I
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 638
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 639
|
|
invoke-virtual {p0}, Landroid/view/Window;->getNavigationBarColor()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static getNavBarHeight()I
|
|
.locals 4
|
|
|
|
.line 486
|
|
invoke-static {}, Lcom/blankj/utilcode/util/Utils;->getApp()Landroid/app/Application;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/app/Application;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "navigation_bar_height"
|
|
|
|
const-string v2, "dimen"
|
|
|
|
const-string v3, "android"
|
|
|
|
.line 487
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 489
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private static getResNameById(I)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 591
|
|
:try_start_0
|
|
invoke-static {}, Lcom/blankj/utilcode/util/Utils;->getApp()Landroid/app/Application;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/app/Application;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getResourceEntryName(I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
const-string p0, ""
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getStatusBarHeight()I
|
|
.locals 4
|
|
|
|
.line 60
|
|
invoke-static {}, Lcom/blankj/utilcode/util/Utils;->getApp()Landroid/app/Application;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/app/Application;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "status_bar_height"
|
|
|
|
const-string v2, "dimen"
|
|
|
|
const-string v3, "android"
|
|
|
|
.line 61
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
.line 62
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private static hideStatusBarView(Landroid/app/Activity;)V
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 377
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 378
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->hideStatusBarView(Landroid/view/Window;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static hideStatusBarView(Landroid/view/Window;)V
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 381
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 382
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/view/ViewGroup;
|
|
|
|
const-string v0, "TAG_STATUS_BAR"
|
|
|
|
.line 383
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/16 v0, 0x8
|
|
|
|
.line 385
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static invokePanels(Ljava/lang/String;)V
|
|
.locals 4
|
|
|
|
.line 466
|
|
:try_start_0
|
|
invoke-static {}, Lcom/blankj/utilcode/util/Utils;->getApp()Landroid/app/Application;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "statusbar"
|
|
|
|
invoke-virtual {v0, v1}, Landroid/app/Application;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "android.app.StatusBarManager"
|
|
|
|
.line 468
|
|
invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-array v3, v2, [Ljava/lang/Class;
|
|
|
|
.line 469
|
|
invoke-virtual {v1, p0, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object p0
|
|
|
|
new-array v1, v2, [Ljava/lang/Object;
|
|
|
|
.line 470
|
|
invoke-virtual {p0, v0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 472
|
|
invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static isNavBarLightMode(Landroid/app/Activity;)Z
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 700
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 701
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->isNavBarLightMode(Landroid/view/Window;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isNavBarLightMode(Landroid/view/Window;)Z
|
|
.locals 3
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 710
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 711
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 712
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
.line 713
|
|
invoke-virtual {p0}, Landroid/view/View;->getSystemUiVisibility()I
|
|
|
|
move-result p0
|
|
|
|
and-int/lit8 p0, p0, 0x10
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
:cond_0
|
|
return v2
|
|
.end method
|
|
|
|
.method public static isNavBarVisible(Landroid/app/Activity;)Z
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 543
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 544
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->isNavBarVisible(Landroid/view/Window;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isNavBarVisible(Landroid/view/Window;)Z
|
|
.locals 7
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 554
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 556
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/view/ViewGroup;
|
|
|
|
.line 557
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
const/4 v3, 0x1
|
|
|
|
if-ge v2, v0, :cond_1
|
|
|
|
.line 558
|
|
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
.line 559
|
|
invoke-virtual {v4}, Landroid/view/View;->getId()I
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, -0x1
|
|
|
|
if-eq v5, v6, :cond_0
|
|
|
|
.line 561
|
|
invoke-static {v5}, Lcom/blankj/utilcode/util/BarUtils;->getResNameById(I)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v6, "navigationBarBackground"
|
|
|
|
.line 562
|
|
invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
.line 563
|
|
invoke-virtual {v4}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
move v0, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v0, v1
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 573
|
|
invoke-static {}, Lcom/blankj/utilcode/util/UtilsBridge;->isSamsung()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x11
|
|
|
|
if-lt v0, v2, :cond_3
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x1d
|
|
|
|
if-ge v0, v2, :cond_3
|
|
|
|
.line 577
|
|
:try_start_0
|
|
invoke-static {}, Lcom/blankj/utilcode/util/Utils;->getApp()Landroid/app/Application;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "navigationbar_hide_bar_enabled"
|
|
|
|
invoke-static {v0, v2}, Landroid/provider/Settings$Global;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
if-nez p0, :cond_2
|
|
|
|
move v1, v3
|
|
|
|
:cond_2
|
|
return v1
|
|
|
|
.line 582
|
|
:catch_0
|
|
:cond_3
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getSystemUiVisibility()I
|
|
|
|
move-result p0
|
|
|
|
and-int/lit8 p0, p0, 0x2
|
|
|
|
if-nez p0, :cond_4
|
|
|
|
move v1, v3
|
|
|
|
:cond_4
|
|
move v0, v1
|
|
|
|
:cond_5
|
|
return v0
|
|
.end method
|
|
|
|
.method public static isStatusBarLightMode(Landroid/app/Activity;)Z
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 143
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 144
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->isStatusBarLightMode(Landroid/view/Window;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isStatusBarLightMode(Landroid/view/Window;)Z
|
|
.locals 3
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 153
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 154
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x17
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 155
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
.line 156
|
|
invoke-virtual {p0}, Landroid/view/View;->getSystemUiVisibility()I
|
|
|
|
move-result p0
|
|
|
|
and-int/lit16 p0, p0, 0x2000
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
:cond_0
|
|
return v2
|
|
.end method
|
|
|
|
.method public static isStatusBarVisible(Landroid/app/Activity;)Z
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 101
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 102
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;
|
|
|
|
move-result-object p0
|
|
|
|
iget p0, p0, Landroid/view/WindowManager$LayoutParams;->flags:I
|
|
|
|
and-int/lit16 p0, p0, 0x400
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isSupportNavBar()Z
|
|
.locals 6
|
|
|
|
.line 648
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/16 v3, 0x11
|
|
|
|
if-lt v0, v3, :cond_3
|
|
|
|
.line 649
|
|
invoke-static {}, Lcom/blankj/utilcode/util/Utils;->getApp()Landroid/app/Application;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v3, "window"
|
|
|
|
invoke-virtual {v0, v3}, Landroid/app/Application;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/WindowManager;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v2
|
|
|
|
.line 651
|
|
:cond_0
|
|
invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
|
|
|
|
move-result-object v0
|
|
|
|
.line 652
|
|
new-instance v3, Landroid/graphics/Point;
|
|
|
|
invoke-direct {v3}, Landroid/graphics/Point;-><init>()V
|
|
|
|
.line 653
|
|
new-instance v4, Landroid/graphics/Point;
|
|
|
|
invoke-direct {v4}, Landroid/graphics/Point;-><init>()V
|
|
|
|
.line 654
|
|
invoke-virtual {v0, v3}, Landroid/view/Display;->getSize(Landroid/graphics/Point;)V
|
|
|
|
.line 655
|
|
invoke-virtual {v0, v4}, Landroid/view/Display;->getRealSize(Landroid/graphics/Point;)V
|
|
|
|
.line 656
|
|
iget v0, v4, Landroid/graphics/Point;->y:I
|
|
|
|
iget v5, v3, Landroid/graphics/Point;->y:I
|
|
|
|
if-ne v0, v5, :cond_2
|
|
|
|
iget v0, v4, Landroid/graphics/Point;->x:I
|
|
|
|
iget v3, v3, Landroid/graphics/Point;->x:I
|
|
|
|
if-eq v0, v3, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v1, v2
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return v1
|
|
|
|
.line 658
|
|
:cond_3
|
|
invoke-static {}, Lcom/blankj/utilcode/util/Utils;->getApp()Landroid/app/Application;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/ViewConfiguration;->hasPermanentMenuKey()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v3, 0x4
|
|
|
|
.line 659
|
|
invoke-static {v3}, Landroid/view/KeyCharacterMap;->deviceHasKey(I)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
if-nez v3, :cond_4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
move v1, v2
|
|
|
|
:goto_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public static setNavBarColor(Landroid/app/Activity;I)V
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 604
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 605
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1}, Lcom/blankj/utilcode/util/BarUtils;->setNavBarColor(Landroid/view/Window;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setNavBarColor(Landroid/view/Window;I)V
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 615
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
.line 616
|
|
invoke-virtual {p0, v0}, Landroid/view/Window;->addFlags(I)V
|
|
|
|
.line 617
|
|
invoke-virtual {p0, p1}, Landroid/view/Window;->setNavigationBarColor(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setNavBarLightMode(Landroid/app/Activity;Z)V
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 669
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 671
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1}, Lcom/blankj/utilcode/util/BarUtils;->setNavBarLightMode(Landroid/view/Window;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setNavBarLightMode(Landroid/view/Window;Z)V
|
|
.locals 2
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 680
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 682
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
.line 683
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
.line 684
|
|
invoke-virtual {p0}, Landroid/view/View;->getSystemUiVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
or-int/lit8 p1, v0, 0x10
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
and-int/lit8 p1, v0, -0x11
|
|
|
|
.line 690
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setSystemUiVisibility(I)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setNavBarVisibility(Landroid/app/Activity;Z)V
|
|
.locals 2
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 501
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 502
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 503
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1}, Lcom/blankj/utilcode/util/BarUtils;->setNavBarVisibility(Landroid/view/Window;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setNavBarVisibility(Landroid/view/Window;Z)V
|
|
.locals 6
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 513
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 514
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 515
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/view/ViewGroup;
|
|
|
|
.line 516
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_3
|
|
|
|
.line 517
|
|
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
.line 518
|
|
invoke-virtual {v3}, Landroid/view/View;->getId()I
|
|
|
|
move-result v4
|
|
|
|
const/4 v5, -0x1
|
|
|
|
if-eq v4, v5, :cond_2
|
|
|
|
.line 520
|
|
invoke-static {v4}, Lcom/blankj/utilcode/util/BarUtils;->getResNameById(I)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "navigationBarBackground"
|
|
|
|
.line 521
|
|
invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
move v4, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v4, 0x4
|
|
|
|
.line 522
|
|
:goto_1
|
|
invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_2
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 530
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getSystemUiVisibility()I
|
|
|
|
move-result p1
|
|
|
|
and-int/lit16 p1, p1, -0x1203
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->setSystemUiVisibility(I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 532
|
|
:cond_4
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getSystemUiVisibility()I
|
|
|
|
move-result p1
|
|
|
|
or-int/lit16 p1, p1, 0x1202
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->setSystemUiVisibility(I)V
|
|
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setNotificationBarVisibility(Z)V
|
|
.locals 1
|
|
|
|
const/16 v0, 0x10
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 456
|
|
sget p0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
if-gt p0, v0, :cond_0
|
|
|
|
const-string p0, "expand"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string p0, "expandNotificationsPanel"
|
|
|
|
goto :goto_0
|
|
|
|
.line 458
|
|
:cond_1
|
|
sget p0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
if-gt p0, v0, :cond_2
|
|
|
|
const-string p0, "collapse"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const-string p0, "collapsePanels"
|
|
|
|
.line 460
|
|
:goto_0
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->invokePanels(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setStatusBarColor(Landroid/app/Activity;I)Landroid/view/View;
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 217
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 219
|
|
invoke-static {p0, p1, v0}, Lcom/blankj/utilcode/util/BarUtils;->setStatusBarColor(Landroid/app/Activity;IZ)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static setStatusBarColor(Landroid/app/Activity;IZ)Landroid/view/View;
|
|
.locals 2
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 3, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 230
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 233
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 234
|
|
:cond_0
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->transparentStatusBar(Landroid/app/Activity;)V
|
|
|
|
.line 235
|
|
invoke-static {p0, p1, p2}, Lcom/blankj/utilcode/util/BarUtils;->applyStatusBarColor(Landroid/app/Activity;IZ)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static setStatusBarColor(Landroid/view/Window;I)Landroid/view/View;
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 245
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 247
|
|
invoke-static {p0, p1, v0}, Lcom/blankj/utilcode/util/BarUtils;->setStatusBarColor(Landroid/view/Window;IZ)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static setStatusBarColor(Landroid/view/Window;IZ)Landroid/view/View;
|
|
.locals 2
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 3, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 258
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 261
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 262
|
|
:cond_0
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->transparentStatusBar(Landroid/view/Window;)V
|
|
|
|
.line 263
|
|
invoke-static {p0, p1, p2}, Lcom/blankj/utilcode/util/BarUtils;->applyStatusBarColor(Landroid/view/Window;IZ)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static setStatusBarColor(Landroid/view/View;I)V
|
|
.locals 2
|
|
|
|
const-string v0, "Argument \'fakeStatusBar\' of type View (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 272
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 274
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 275
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/blankj/utilcode/util/UtilsBridge;->getActivityByContext(Landroid/content/Context;)Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 277
|
|
:cond_1
|
|
invoke-static {v0}, Lcom/blankj/utilcode/util/BarUtils;->transparentStatusBar(Landroid/app/Activity;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 278
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 279
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
.line 280
|
|
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
.line 281
|
|
invoke-static {}, Lcom/blankj/utilcode/util/BarUtils;->getStatusBarHeight()I
|
|
|
|
move-result v1
|
|
|
|
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
.line 282
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setStatusBarColor4Drawer(Landroidx/drawerlayout/widget/DrawerLayout;Landroid/view/View;I)V
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'drawer\' of type DrawerLayout (#0 out of 3, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 317
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const-string v0, "Argument \'fakeStatusBar\' of type View (#1 out of 3, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 318
|
|
invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 320
|
|
invoke-static {p0, p1, p2, v0}, Lcom/blankj/utilcode/util/BarUtils;->setStatusBarColor4Drawer(Landroidx/drawerlayout/widget/DrawerLayout;Landroid/view/View;IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setStatusBarColor4Drawer(Landroidx/drawerlayout/widget/DrawerLayout;Landroid/view/View;IZ)V
|
|
.locals 4
|
|
|
|
const-string v0, "Argument \'drawer\' of type DrawerLayout (#0 out of 4, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 332
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const-string v0, "Argument \'fakeStatusBar\' of type View (#1 out of 4, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 333
|
|
invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 336
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 337
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/blankj/utilcode/util/UtilsBridge;->getActivityByContext(Landroid/content/Context;)Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 339
|
|
:cond_1
|
|
invoke-static {v0}, Lcom/blankj/utilcode/util/BarUtils;->transparentStatusBar(Landroid/app/Activity;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 340
|
|
invoke-virtual {p0, v1}, Landroidx/drawerlayout/widget/DrawerLayout;->setFitsSystemWindows(Z)V
|
|
|
|
.line 341
|
|
invoke-static {p1, p2}, Lcom/blankj/utilcode/util/BarUtils;->setStatusBarColor(Landroid/view/View;I)V
|
|
|
|
.line 342
|
|
invoke-virtual {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->getChildCount()I
|
|
|
|
move-result p1
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-ge v2, p1, :cond_2
|
|
|
|
.line 343
|
|
invoke-virtual {p0, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3, v1}, Landroid/view/View;->setFitsSystemWindows(Z)V
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-eqz p3, :cond_3
|
|
|
|
.line 346
|
|
invoke-static {v0}, Lcom/blankj/utilcode/util/BarUtils;->hideStatusBarView(Landroid/app/Activity;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 348
|
|
:cond_3
|
|
invoke-static {v0, p2, v1}, Lcom/blankj/utilcode/util/BarUtils;->setStatusBarColor(Landroid/app/Activity;IZ)Landroid/view/View;
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setStatusBarCustom(Landroid/view/View;)V
|
|
.locals 3
|
|
|
|
const-string v0, "Argument \'fakeStatusBar\' of type View (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 290
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 291
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 292
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/blankj/utilcode/util/UtilsBridge;->getActivityByContext(Landroid/content/Context;)Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 294
|
|
:cond_1
|
|
invoke-static {v0}, Lcom/blankj/utilcode/util/BarUtils;->transparentStatusBar(Landroid/app/Activity;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 295
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 296
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 298
|
|
new-instance v0, Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.line 300
|
|
invoke-static {}, Lcom/blankj/utilcode/util/BarUtils;->getStatusBarHeight()I
|
|
|
|
move-result v2
|
|
|
|
invoke-direct {v0, v1, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
|
|
|
|
.line 302
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 304
|
|
:cond_2
|
|
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
.line 305
|
|
invoke-static {}, Lcom/blankj/utilcode/util/BarUtils;->getStatusBarHeight()I
|
|
|
|
move-result p0
|
|
|
|
iput p0, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setStatusBarLightMode(Landroid/app/Activity;Z)V
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 112
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 114
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1}, Lcom/blankj/utilcode/util/BarUtils;->setStatusBarLightMode(Landroid/view/Window;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setStatusBarLightMode(Landroid/view/Window;Z)V
|
|
.locals 2
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 123
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 125
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x17
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
.line 126
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
.line 127
|
|
invoke-virtual {p0}, Landroid/view/View;->getSystemUiVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
or-int/lit16 p1, v0, 0x2000
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
and-int/lit16 p1, v0, -0x2001
|
|
|
|
.line 133
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setSystemUiVisibility(I)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setStatusBarVisibility(Landroid/app/Activity;Z)V
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 71
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 73
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, p1}, Lcom/blankj/utilcode/util/BarUtils;->setStatusBarVisibility(Landroid/view/Window;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setStatusBarVisibility(Landroid/view/Window;Z)V
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 2, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 82
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const/16 v0, 0x400
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 85
|
|
invoke-virtual {p0, v0}, Landroid/view/Window;->clearFlags(I)V
|
|
|
|
.line 86
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->showStatusBarView(Landroid/view/Window;)V
|
|
|
|
.line 87
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->addMarginTopEqualStatusBarHeight(Landroid/view/Window;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 89
|
|
:cond_0
|
|
invoke-virtual {p0, v0}, Landroid/view/Window;->addFlags(I)V
|
|
|
|
.line 90
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->hideStatusBarView(Landroid/view/Window;)V
|
|
|
|
.line 91
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->subtractMarginTopEqualStatusBarHeight(Landroid/view/Window;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private static showStatusBarView(Landroid/view/Window;)V
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 388
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 389
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/view/ViewGroup;
|
|
|
|
const-string v0, "TAG_STATUS_BAR"
|
|
|
|
.line 390
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 392
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static subtractMarginTopEqualStatusBarHeight(Landroid/view/View;)V
|
|
.locals 6
|
|
|
|
const-string v0, "Argument \'view\' of type View (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 185
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 186
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/16 v0, -0x7b
|
|
|
|
.line 187
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 188
|
|
check-cast v1, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 189
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
.line 190
|
|
iget v2, v1, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
iget v3, v1, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
.line 191
|
|
invoke-static {}, Lcom/blankj/utilcode/util/BarUtils;->getStatusBarHeight()I
|
|
|
|
move-result v4
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
iget v4, v1, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
iget v5, v1, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
.line 190
|
|
invoke-virtual {v1, v2, v3, v4, v5}, Landroid/view/ViewGroup$MarginLayoutParams;->setMargins(IIII)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 194
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v0, v1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private static subtractMarginTopEqualStatusBarHeight(Landroid/view/Window;)V
|
|
.locals 2
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 204
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 205
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 206
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "TAG_OFFSET"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 208
|
|
:cond_1
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->subtractMarginTopEqualStatusBarHeight(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static transparentStatusBar(Landroid/app/Activity;)V
|
|
.locals 1
|
|
|
|
const-string v0, "Argument \'activity\' of type Activity (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 405
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 406
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/blankj/utilcode/util/BarUtils;->transparentStatusBar(Landroid/view/Window;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static transparentStatusBar(Landroid/view/Window;)V
|
|
.locals 3
|
|
|
|
const-string v0, "Argument \'window\' of type Window (#0 out of 1, zero-based) is marked by @android.support.annotation.NonNull but got null for it"
|
|
|
|
.line 409
|
|
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 410
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 411
|
|
:cond_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x15
|
|
|
|
const/high16 v2, 0x4000000
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
.line 412
|
|
invoke-virtual {p0, v2}, Landroid/view/Window;->clearFlags(I)V
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
.line 413
|
|
invoke-virtual {p0, v0}, Landroid/view/Window;->addFlags(I)V
|
|
|
|
.line 415
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getSystemUiVisibility()I
|
|
|
|
move-result v0
|
|
|
|
.line 416
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
or-int/lit16 v0, v0, 0x500
|
|
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->setSystemUiVisibility(I)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 417
|
|
invoke-virtual {p0, v0}, Landroid/view/Window;->setStatusBarColor(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 419
|
|
:cond_1
|
|
invoke-virtual {p0, v2}, Landroid/view/Window;->addFlags(I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|