- 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
433 lines
12 KiB
Smali
433 lines
12 KiB
Smali
.class Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;
|
|
.super Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x13
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/emoji2/viewsintegration/EmojiTextViewHelper;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "HelperInternal19"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final mEmojiInputFilter:Landroidx/emoji2/viewsintegration/EmojiInputFilter;
|
|
|
|
.field private mEnabled:Z
|
|
|
|
.field private final mTextView:Landroid/widget/TextView;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/widget/TextView;)V
|
|
.locals 1
|
|
|
|
.line 322
|
|
invoke-direct {p0}, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mTextView:Landroid/widget/TextView;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mEnabled:Z
|
|
|
|
.line 325
|
|
new-instance v0, Landroidx/emoji2/viewsintegration/EmojiInputFilter;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/emoji2/viewsintegration/EmojiInputFilter;-><init>(Landroid/widget/TextView;)V
|
|
|
|
iput-object v0, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mEmojiInputFilter:Landroidx/emoji2/viewsintegration/EmojiInputFilter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private addEmojiInputFilterIfMissing([Landroid/text/InputFilter;)[Landroid/text/InputFilter;
|
|
.locals 5
|
|
.param p1 # [Landroid/text/InputFilter;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 365
|
|
array-length v0, p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_1
|
|
|
|
.line 367
|
|
aget-object v3, p1, v2
|
|
|
|
iget-object v4, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mEmojiInputFilter:Landroidx/emoji2/viewsintegration/EmojiInputFilter;
|
|
|
|
if-ne v3, v4, :cond_0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 371
|
|
:cond_1
|
|
array-length v2, p1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
new-array v2, v2, [Landroid/text/InputFilter;
|
|
|
|
.line 372
|
|
invoke-static {p1, v1, v2, v1, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
iget-object p1, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mEmojiInputFilter:Landroidx/emoji2/viewsintegration/EmojiInputFilter;
|
|
|
|
.line 373
|
|
aput-object p1, v2, v0
|
|
|
|
return-object v2
|
|
.end method
|
|
|
|
.method private getEmojiInputFilterPositionArray([Landroid/text/InputFilter;)Landroid/util/SparseArray;
|
|
.locals 4
|
|
.param p1 # [Landroid/text/InputFilter;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"([",
|
|
"Landroid/text/InputFilter;",
|
|
")",
|
|
"Landroid/util/SparseArray<",
|
|
"Landroid/text/InputFilter;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 409
|
|
new-instance v0, Landroid/util/SparseArray;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {v0, v1}, Landroid/util/SparseArray;-><init>(I)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 410
|
|
:goto_0
|
|
array-length v2, p1
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 411
|
|
aget-object v2, p1, v1
|
|
|
|
instance-of v3, v2, Landroidx/emoji2/viewsintegration/EmojiInputFilter;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 412
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private removeEmojiInputFilterIfPresent([Landroid/text/InputFilter;)[Landroid/text/InputFilter;
|
|
.locals 6
|
|
.param p1 # [Landroid/text/InputFilter;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 385
|
|
invoke-direct {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->getEmojiInputFilterPositionArray([Landroid/text/InputFilter;)Landroid/util/SparseArray;
|
|
|
|
move-result-object v0
|
|
|
|
.line 386
|
|
invoke-virtual {v0}, Landroid/util/SparseArray;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return-object p1
|
|
|
|
.line 391
|
|
:cond_0
|
|
array-length v1, p1
|
|
|
|
.line 392
|
|
array-length v2, p1
|
|
|
|
invoke-virtual {v0}, Landroid/util/SparseArray;->size()I
|
|
|
|
move-result v3
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
.line 393
|
|
new-array v2, v2, [Landroid/text/InputFilter;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
move v4, v3
|
|
|
|
:goto_0
|
|
if-ge v3, v1, :cond_2
|
|
|
|
.line 396
|
|
invoke-virtual {v0, v3}, Landroid/util/SparseArray;->indexOfKey(I)I
|
|
|
|
move-result v5
|
|
|
|
if-gez v5, :cond_1
|
|
|
|
.line 397
|
|
aget-object v5, p1, v3
|
|
|
|
aput-object v5, v2, v4
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
:cond_1
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-object v2
|
|
.end method
|
|
|
|
.method private unwrapForDisabled(Landroid/text/method/TransformationMethod;)Landroid/text/method/TransformationMethod;
|
|
.locals 1
|
|
.param p1 # Landroid/text/method/TransformationMethod;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 435
|
|
instance-of v0, p1, Landroidx/emoji2/viewsintegration/EmojiTransformationMethod;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 436
|
|
check-cast p1, Landroidx/emoji2/viewsintegration/EmojiTransformationMethod;
|
|
|
|
.line 438
|
|
invoke-virtual {p1}, Landroidx/emoji2/viewsintegration/EmojiTransformationMethod;->getOriginalTransformationMethod()Landroid/text/method/TransformationMethod;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private updateFilters()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mTextView:Landroid/widget/TextView;
|
|
|
|
.line 342
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getFilters()[Landroid/text/InputFilter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mTextView:Landroid/widget/TextView;
|
|
|
|
.line 343
|
|
invoke-virtual {p0, v0}, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->getFilters([Landroid/text/InputFilter;)[Landroid/text/InputFilter;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setFilters([Landroid/text/InputFilter;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private wrapForEnabled(Landroid/text/method/TransformationMethod;)Landroid/text/method/TransformationMethod;
|
|
.locals 1
|
|
.param p1 # Landroid/text/method/TransformationMethod;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 452
|
|
instance-of v0, p1, Landroidx/emoji2/viewsintegration/EmojiTransformationMethod;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
.line 454
|
|
:cond_0
|
|
instance-of v0, p1, Landroid/text/method/PasswordTransformationMethod;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return-object p1
|
|
|
|
.line 457
|
|
:cond_1
|
|
new-instance v0, Landroidx/emoji2/viewsintegration/EmojiTransformationMethod;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/emoji2/viewsintegration/EmojiTransformationMethod;-><init>(Landroid/text/method/TransformationMethod;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getFilters([Landroid/text/InputFilter;)[Landroid/text/InputFilter;
|
|
.locals 1
|
|
.param p1 # [Landroid/text/InputFilter;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mEnabled:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 351
|
|
invoke-direct {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->removeEmojiInputFilterIfPresent([Landroid/text/InputFilter;)[Landroid/text/InputFilter;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 353
|
|
:cond_0
|
|
invoke-direct {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->addEmojiInputFilterIfMissing([Landroid/text/InputFilter;)[Landroid/text/InputFilter;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public isEnabled()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mEnabled:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public setAllCaps(Z)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 466
|
|
invoke-virtual {p0}, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->updateTransformationMethod()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setEnabled(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mEnabled:Z
|
|
|
|
.line 473
|
|
invoke-virtual {p0}, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->updateTransformationMethod()V
|
|
|
|
.line 474
|
|
invoke-direct {p0}, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->updateFilters()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setEnabledUnsafe(Z)V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
iput-boolean p1, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mEnabled:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public updateTransformationMethod()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mTextView:Landroid/widget/TextView;
|
|
|
|
.line 334
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getTransformationMethod()Landroid/text/method/TransformationMethod;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->wrapTransformationMethod(Landroid/text/method/TransformationMethod;)Landroid/text/method/TransformationMethod;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mTextView:Landroid/widget/TextView;
|
|
|
|
.line 335
|
|
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTransformationMethod(Landroid/text/method/TransformationMethod;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public wrapTransformationMethod(Landroid/text/method/TransformationMethod;)Landroid/text/method/TransformationMethod;
|
|
.locals 1
|
|
.param p1 # Landroid/text/method/TransformationMethod;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->mEnabled:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 423
|
|
invoke-direct {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->wrapForEnabled(Landroid/text/method/TransformationMethod;)Landroid/text/method/TransformationMethod;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 425
|
|
:cond_0
|
|
invoke-direct {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiTextViewHelper$HelperInternal19;->unwrapForDisabled(Landroid/text/method/TransformationMethod;)Landroid/text/method/TransformationMethod;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|