HomeKeyEventReceiver.smali
.class public Lcom/masala/share/utils/HomeKeyEventReceiver;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/masala/share/utils/HomeKeyEventReceiver$a;
}
.end annotation
# instance fields
.field a:Ljava/lang/String;
.field b:Ljava/lang/String;
.field public c:Lcom/masala/share/utils/HomeKeyEventReceiver$a;
# direct methods
.method public constructor <init>()V
.registers 2
.line 19
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
const-string v0, "reason"
.line 20
iput-object v0, p0, Lcom/masala/share/utils/HomeKeyEventReceiver;->a:Ljava/lang/String;
const-string v0, "homekey"
.line 21
iput-object v0, p0, Lcom/masala/share/utils/HomeKeyEventReceiver;->b:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.registers 4
.line 26
:try_start_0
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object p1
const-string v0, "android.intent.action.CLOSE_SYSTEM_DIALOGS"
.line 27
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_2a
.line 28
iget-object p1, p0, Lcom/masala/share/utils/HomeKeyEventReceiver;->a:Ljava/lang/String;
invoke-virtual {p2, p1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 29
iget-object p2, p0, Lcom/masala/share/utils/HomeKeyEventReceiver;->b:Ljava/lang/String;
invoke-static {p1, p2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
move-result p1
if-eqz p1, :cond_2a
.line 30
iget-object p1, p0, Lcom/masala/share/utils/HomeKeyEventReceiver;->c:Lcom/masala/share/utils/HomeKeyEventReceiver$a;
if-eqz p1, :cond_2a
const-string p1, "HomeKeyEventReceiver"
const-string p2, "HomeKeyEventReceiver onHomeClick."
.line 31
invoke-static {p1, p2}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 32
iget-object p1, p0, Lcom/masala/share/utils/HomeKeyEventReceiver;->c:Lcom/masala/share/utils/HomeKeyEventReceiver$a;
invoke-interface {p1}, Lcom/masala/share/utils/HomeKeyEventReceiver$a;->a()V
:try_end_2a
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_2a} :catch_2a
:catch_2a
:cond_2a
return-void
.end method