EnableReceiveNotifyMsgApi$1.smali
.class Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi$1;
.super Ljava/lang/Object;
.source "EnableReceiveNotifyMsgApi.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi;->onConnect(ILcom/huawei/hms/api/HuaweiApiClient;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi;
.field final synthetic val$client:Lcom/huawei/hms/api/HuaweiApiClient;
.field final synthetic val$rst:I
# direct methods
.method constructor <init>(Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi;Lcom/huawei/hms/api/HuaweiApiClient;I)V
.registers 4
.prologue
.line 41
iput-object p1, p0, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi$1;->this$0:Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi;
iput-object p2, p0, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi$1;->val$client:Lcom/huawei/hms/api/HuaweiApiClient;
iput p3, p0, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi$1;->val$rst:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 4
.prologue
.line 44
iget-object v0, p0, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi$1;->val$client:Lcom/huawei/hms/api/HuaweiApiClient;
if-eqz v0, :cond_e
sget-object v0, Lcom/baidu/techain/hw/android/hms/agent/common/ApiClientMgr;->INST:Lcom/baidu/techain/hw/android/hms/agent/common/ApiClientMgr;
iget-object v1, p0, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi$1;->val$client:Lcom/huawei/hms/api/HuaweiApiClient;
invoke-virtual {v0, v1}, Lcom/baidu/techain/hw/android/hms/agent/common/ApiClientMgr;->isConnect(Lcom/huawei/hms/api/HuaweiApiClient;)Z
move-result v0
if-nez v0, :cond_1b
.line 45
:cond_e
const-string v0, "client not connted"
invoke-static {v0}, Lcom/baidu/techain/hw/android/hms/agent/common/HMSAgentLog;->e(Ljava/lang/String;)V
.line 46
iget-object v0, p0, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi$1;->this$0:Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi;
iget v1, p0, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi$1;->val$rst:I
invoke-virtual {v0, v1}, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi;->onEnableReceiveNotifyMsgResult(I)V
.line 52
:goto_1a
return-void
.line 49
:cond_1b
sget-object v0, Lcom/huawei/hms/support/api/push/HuaweiPush;->HuaweiPushApi:Lcom/huawei/hms/support/api/push/HuaweiPushApi;
iget-object v1, p0, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi$1;->val$client:Lcom/huawei/hms/api/HuaweiApiClient;
iget-object v2, p0, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi$1;->this$0:Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi;
iget-boolean v2, v2, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi;->enable:Z
invoke-interface {v0, v1, v2}, Lcom/huawei/hms/support/api/push/HuaweiPushApi;->enableReceiveNotifyMsg(Lcom/huawei/hms/support/api/client/ApiClient;Z)V
.line 50
iget-object v0, p0, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi$1;->this$0:Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/baidu/techain/hw/android/hms/agent/push/EnableReceiveNotifyMsgApi;->onEnableReceiveNotifyMsgResult(I)V
goto :goto_1a
.end method