Files
rr3-apk/smali_classes3/com/helpshift/notification/RequestUnreadMessageCountHandler$1.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08: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