93 lines
2.1 KiB
Smali
93 lines
2.1 KiB
Smali
.class public final Lf/k/a/b/p;
|
|
.super Ljava/lang/Object;
|
|
.source "AudioBecomingNoisyManager.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lf/k/a/b/p$a;,
|
|
Lf/k/a/b/p$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/content/Context;
|
|
|
|
.field public final b:Lf/k/a/b/p$a;
|
|
|
|
.field public c:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/os/Handler;Lf/k/a/b/p$b;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lf/k/a/b/p;->a:Landroid/content/Context;
|
|
|
|
new-instance p1, Lf/k/a/b/p$a;
|
|
|
|
invoke-direct {p1, p0, p2, p3}, Lf/k/a/b/p$a;-><init>(Lf/k/a/b/p;Landroid/os/Handler;Lf/k/a/b/p$b;)V
|
|
|
|
iput-object p1, p0, Lf/k/a/b/p;->b:Lf/k/a/b/p$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Z)V
|
|
.locals 3
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-boolean v0, p0, Lf/k/a/b/p;->c:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object p1, p0, Lf/k/a/b/p;->a:Landroid/content/Context;
|
|
|
|
iget-object v0, p0, Lf/k/a/b/p;->b:Lf/k/a/b/p$a;
|
|
|
|
new-instance v1, Landroid/content/IntentFilter;
|
|
|
|
const-string v2, "android.media.AUDIO_BECOMING_NOISY"
|
|
|
|
invoke-direct {v1, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lf/k/a/b/p;->c:Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
iget-boolean p1, p0, Lf/k/a/b/p;->c:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object p1, p0, Lf/k/a/b/p;->a:Landroid/content/Context;
|
|
|
|
iget-object v0, p0, Lf/k/a/b/p;->b:Lf/k/a/b/p$a;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-boolean p1, p0, Lf/k/a/b/p;->c:Z
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|