mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
168 lines
5.3 KiB
Smali
168 lines
5.3 KiB
Smali
.class public final Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;
|
|
.super Ljava/lang/Object;
|
|
.source "EmojiEditTextHelper.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;,
|
|
Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal19;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private mEmojiReplaceStrategy:I
|
|
|
|
.field private final mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;
|
|
|
|
.field private mMaxEmojiCount:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/widget/EditText;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 83
|
|
invoke-direct {p0, p1, v0}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;-><init>(Landroid/widget/EditText;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/widget/EditText;Z)V
|
|
.locals 1
|
|
|
|
.line 105
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const v0, 0x7fffffff
|
|
|
|
iput v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mMaxEmojiCount:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mEmojiReplaceStrategy:I
|
|
|
|
const-string v0, "editText cannot be null"
|
|
|
|
.line 106
|
|
invoke-static {p1, v0}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 110
|
|
new-instance v0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal19;
|
|
|
|
invoke-direct {v0, p1, p2}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal19;-><init>(Landroid/widget/EditText;Z)V
|
|
|
|
iput-object v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getEmojiReplaceStrategy()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mEmojiReplaceStrategy:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getKeyListener(Landroid/text/method/KeyListener;)Landroid/text/method/KeyListener;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;
|
|
|
|
.line 155
|
|
invoke-virtual {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->getKeyListener(Landroid/text/method/KeyListener;)Landroid/text/method/KeyListener;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getMaxEmojiCount()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mMaxEmojiCount:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public isEnabled()Z
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;
|
|
|
|
.line 212
|
|
invoke-virtual {p0}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->isEnabled()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public onCreateInputConnection(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
iget-object p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;
|
|
|
|
.line 174
|
|
invoke-virtual {p0, p1, p2}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->onCreateInputConnection(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setEmojiReplaceStrategy(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mEmojiReplaceStrategy:I
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;
|
|
|
|
.line 189
|
|
invoke-virtual {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->setEmojiReplaceStrategy(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setEnabled(Z)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;
|
|
|
|
.line 225
|
|
invoke-virtual {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->setEnabled(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMaxEmojiCount(I)V
|
|
.locals 1
|
|
|
|
const-string v0, "maxEmojiCount should be greater than 0"
|
|
|
|
.line 126
|
|
invoke-static {p1, v0}, Landroidx/core/util/Preconditions;->checkArgumentNonnegative(ILjava/lang/String;)I
|
|
|
|
iput p1, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mMaxEmojiCount:I
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;
|
|
|
|
.line 129
|
|
invoke-virtual {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->setMaxEmojiCount(I)V
|
|
|
|
return-void
|
|
.end method
|