apkfuckery/com.discord/smali/androidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager.smali

95 lines
2.9 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager;
2019-11-15 02:21:15 +00:00
.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;
2019-12-06 03:29:40 +00:00
accessFlags = 0x1
2019-11-15 02:21:15 +00:00
name = "AutoTimeNightModeManager"
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final mTwilightManager:Landroidx/appcompat/app/TwilightManager;
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
2019-11-15 02:21:15 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroidx/appcompat/app/AppCompatDelegateImpl;Landroidx/appcompat/app/TwilightManager;)V
2019-11-15 02:21:15 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
.param p1 # Landroidx/appcompat/app/AppCompatDelegateImpl;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2019-11-15 02:21:15 +00:00
iput-object p1, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager;->this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
invoke-direct {p0, p1}, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoNightModeManager;-><init>(Landroidx/appcompat/app/AppCompatDelegateImpl;)V
iput-object p2, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager;->mTwilightManager:Landroidx/appcompat/app/TwilightManager;
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public createIntentFilterForBroadcastReceiver()Landroid/content/IntentFilter;
2019-11-15 02:21:15 +00:00
.locals 2
new-instance v0, Landroid/content/IntentFilter;
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
const-string v1, "android.intent.action.TIME_SET"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
const-string v1, "android.intent.action.TIMEZONE_CHANGED"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
const-string v1, "android.intent.action.TIME_TICK"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
return-object v0
.end method
.method public getApplyableNightMode()I
.locals 1
iget-object v0, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager;->mTwilightManager:Landroidx/appcompat/app/TwilightManager;
invoke-virtual {v0}, Landroidx/appcompat/app/TwilightManager;->isNight()Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x2
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-11-15 02:21:15 +00:00
:cond_0
const/4 v0, 0x1
2019-12-06 03:29:40 +00:00
:goto_0
2019-11-15 02:21:15 +00:00
return v0
.end method
.method public onChange()V
.locals 1
iget-object v0, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$AutoTimeNightModeManager;->this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
invoke-virtual {v0}, Landroidx/appcompat/app/AppCompatDelegateImpl;->applyDayNight()Z
return-void
.end method