Files
rr3-apk/smali_classes3/com/helpshift/notification/RequestUnreadMessageCountHandler$1.smali
supermegamestre 4bbd74a497 First Upload
Just the APK
Force update disabled, will only work offline.
2026-01-26 00:26:29 -03:00

131 lines
3.8 KiB
Smali

.class public Lcom/helpshift/notification/RequestUnreadMessageCountHandler$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/helpshift/notification/RequestUnreadMessageCountHandler;->handleRemoteRequest()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/helpshift/notification/RequestUnreadMessageCountHandler;
# direct methods
.method public constructor <init>(Lcom/helpshift/notification/RequestUnreadMessageCountHandler;)V
.locals 0
iput-object p1, p0, Lcom/helpshift/notification/RequestUnreadMessageCountHandler$1;->this$0:Lcom/helpshift/notification/RequestUnreadMessageCountHandler;
.line 80
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 5
:try_start_0
iget-object v0, p0, Lcom/helpshift/notification/RequestUnreadMessageCountHandler$1;->this$0:Lcom/helpshift/notification/RequestUnreadMessageCountHandler;
.line 84
invoke-static {v0}, Lcom/helpshift/notification/RequestUnreadMessageCountHandler;->access$000(Lcom/helpshift/notification/RequestUnreadMessageCountHandler;)Lcom/helpshift/poller/FetchNotificationUpdate;
move-result-object v0
invoke-virtual {v0}, Lcom/helpshift/poller/FetchNotificationUpdate;->execute()I
move-result v0
const/16 v1, 0xc8
const/4 v2, 0x0
const/4 v3, 0x1
if-lt v0, v1, :cond_0
const/16 v1, 0x12c
if-ge v0, v1, :cond_0
move v2, v3
.line 87
:cond_0
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
const-string v1, "count"
iget-object v4, p0, Lcom/helpshift/notification/RequestUnreadMessageCountHandler$1;->this$0:Lcom/helpshift/notification/RequestUnreadMessageCountHandler;
.line 88
invoke-static {v4}, Lcom/helpshift/notification/RequestUnreadMessageCountHandler;->access$100(Lcom/helpshift/notification/RequestUnreadMessageCountHandler;)Lcom/helpshift/user/UserManager;
move-result-object v4
invoke-virtual {v4}, Lcom/helpshift/user/UserManager;->getUnreadNotificationCount()I
move-result v4
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "fromCache"
xor-int/2addr v2, v3
.line 89
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v2
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v1, p0, Lcom/helpshift/notification/RequestUnreadMessageCountHandler$1;->this$0:Lcom/helpshift/notification/RequestUnreadMessageCountHandler;
.line 90
invoke-static {v1}, Lcom/helpshift/notification/RequestUnreadMessageCountHandler;->access$200(Lcom/helpshift/notification/RequestUnreadMessageCountHandler;)Lcom/helpshift/chat/HSEventProxy;
move-result-object v1
const-string v2, "receivedUnreadMessageCount"
invoke-virtual {v1, v2, v0}, Lcom/helpshift/chat/HSEventProxy;->sendEvent(Ljava/lang/String;Ljava/util/Map;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
const-string v1, "rqUnrdCntHdlr"
const-string v2, "Error in fetching unread count from remote"
.line 93
invoke-static {v1, v2, v0}, Lcom/helpshift/log/HSLogger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_0
return-void
.end method