Changes of com.discord v1144
This commit is contained in:
parent
4746542b20
commit
f52990c3c2
25752 changed files with 4382359 additions and 77 deletions
|
@ -0,0 +1,98 @@
|
|||
.class public Landroidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager;
|
||||
.super Landroidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager;
|
||||
.source "AppCompatDelegateImpl.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/appcompat/app/AppCompatDelegateImpl;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = "AutoBatteryNightModeManager"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final mPowerManager:Landroid/os/PowerManager;
|
||||
|
||||
.field public final synthetic this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroidx/appcompat/app/AppCompatDelegateImpl;Landroid/content/Context;)V
|
||||
.locals 0
|
||||
.param p1 # Landroidx/appcompat/app/AppCompatDelegateImpl;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
iput-object p1, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager;->this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager;-><init>(Landroidx/appcompat/app/AppCompatDelegateImpl;)V
|
||||
|
||||
const-string p1, "power"
|
||||
|
||||
invoke-virtual {p2, p1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
check-cast p1, Landroid/os/PowerManager;
|
||||
|
||||
iput-object p1, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager;->mPowerManager:Landroid/os/PowerManager;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public createIntentFilterForBroadcastReceiver()Landroid/content/IntentFilter;
|
||||
.locals 2
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
new-instance v0, Landroid/content/IntentFilter;
|
||||
|
||||
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
|
||||
|
||||
const-string v1, "android.os.action.POWER_SAVE_MODE_CHANGED"
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public getApplyableNightMode()I
|
||||
.locals 1
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
iget-object v0, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager;->mPowerManager:Landroid/os/PowerManager;
|
||||
|
||||
invoke-virtual {v0}, Landroid/os/PowerManager;->isPowerSaveMode()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const/4 v0, 0x2
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x1
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public onChange()V
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoBatteryNightModeManager;->this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/appcompat/app/AppCompatDelegateImpl;->applyDayNight()Z
|
||||
|
||||
return-void
|
||||
.end method
|
Loading…
Add table
Add a link
Reference in a new issue