Files
rr3-apk/smali_classes3/com/helpshift/chat/HSChatFragment$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

128 lines
3.3 KiB
Smali

.class public Lcom/helpshift/chat/HSChatFragment$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/helpshift/chat/HSChatFragment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/helpshift/chat/HSChatFragment;
# direct methods
.method public constructor <init>(Lcom/helpshift/chat/HSChatFragment;)V
.locals 0
iput-object p1, p0, Lcom/helpshift/chat/HSChatFragment$1;->this$0:Lcom/helpshift/chat/HSChatFragment;
.line 74
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onGlobalLayout()V
.locals 6
iget-object v0, p0, Lcom/helpshift/chat/HSChatFragment$1;->this$0:Lcom/helpshift/chat/HSChatFragment;
.line 77
invoke-static {v0}, Lcom/helpshift/chat/HSChatFragment;->access$000(Lcom/helpshift/chat/HSChatFragment;)Lcom/helpshift/views/HSWebView;
move-result-object v0
if-nez v0, :cond_0
return-void
.line 80
:cond_0
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
iget-object v1, p0, Lcom/helpshift/chat/HSChatFragment$1;->this$0:Lcom/helpshift/chat/HSChatFragment;
.line 82
invoke-static {v1}, Lcom/helpshift/chat/HSChatFragment;->access$000(Lcom/helpshift/chat/HSChatFragment;)Lcom/helpshift/views/HSWebView;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/view/View;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V
iget-object v1, p0, Lcom/helpshift/chat/HSChatFragment$1;->this$0:Lcom/helpshift/chat/HSChatFragment;
.line 83
invoke-static {v1}, Lcom/helpshift/chat/HSChatFragment;->access$000(Lcom/helpshift/chat/HSChatFragment;)Lcom/helpshift/views/HSWebView;
move-result-object v1
invoke-virtual {v1}, Landroid/view/View;->getRootView()Landroid/view/View;
move-result-object v1
invoke-virtual {v1}, Landroid/view/View;->getHeight()I
move-result v1
iget v0, v0, Landroid/graphics/Rect;->bottom:I
sub-int v0, v1, v0
int-to-double v2, v0
int-to-double v0, v1
const-wide v4, 0x3fc3333333333333L # 0.15
mul-double/2addr v0, v4
cmpl-double v0, v2, v0
if-lez v0, :cond_1
const/4 v0, 0x1
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
iget-object v1, p0, Lcom/helpshift/chat/HSChatFragment$1;->this$0:Lcom/helpshift/chat/HSChatFragment;
.line 89
invoke-static {v1}, Lcom/helpshift/chat/HSChatFragment;->access$100(Lcom/helpshift/chat/HSChatFragment;)Z
move-result v1
if-eq v0, v1, :cond_2
iget-object v1, p0, Lcom/helpshift/chat/HSChatFragment$1;->this$0:Lcom/helpshift/chat/HSChatFragment;
.line 90
invoke-virtual {v1, v0}, Lcom/helpshift/chat/HSChatFragment;->sendKeyboardToggleEvent(Z)V
:cond_2
iget-object v1, p0, Lcom/helpshift/chat/HSChatFragment$1;->this$0:Lcom/helpshift/chat/HSChatFragment;
.line 92
invoke-static {v1, v0}, Lcom/helpshift/chat/HSChatFragment;->access$102(Lcom/helpshift/chat/HSChatFragment;Z)Z
return-void
.end method