mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 09:32:27 -06:00
153 lines
4.6 KiB
Smali
153 lines
4.6 KiB
Smali
.class Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal19;
|
|
.super Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;
|
|
.source "EmojiEditTextHelper.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "HelperInternal19"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final mEditText:Landroid/widget/EditText;
|
|
|
|
.field private final mTextWatcher:Landroidx/emoji2/viewsintegration/EmojiTextWatcher;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroid/widget/EditText;Z)V
|
|
.locals 1
|
|
|
|
.line 263
|
|
invoke-direct {p0}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal19;->mEditText:Landroid/widget/EditText;
|
|
|
|
.line 265
|
|
new-instance v0, Landroidx/emoji2/viewsintegration/EmojiTextWatcher;
|
|
|
|
invoke-direct {v0, p1, p2}, Landroidx/emoji2/viewsintegration/EmojiTextWatcher;-><init>(Landroid/widget/EditText;Z)V
|
|
|
|
iput-object v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal19;->mTextWatcher:Landroidx/emoji2/viewsintegration/EmojiTextWatcher;
|
|
|
|
.line 266
|
|
invoke-virtual {p1, v0}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V
|
|
|
|
.line 267
|
|
invoke-static {}, Landroidx/emoji2/viewsintegration/EmojiEditableFactory;->getInstance()Landroid/text/Editable$Factory;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p1, p0}, Landroid/widget/EditText;->setEditableFactory(Landroid/text/Editable$Factory;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method getKeyListener(Landroid/text/method/KeyListener;)Landroid/text/method/KeyListener;
|
|
.locals 0
|
|
|
|
.line 282
|
|
instance-of p0, p1, Landroidx/emoji2/viewsintegration/EmojiKeyListener;
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 291
|
|
:cond_1
|
|
instance-of p0, p1, Landroid/text/method/NumberKeyListener;
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
return-object p1
|
|
|
|
.line 297
|
|
:cond_2
|
|
new-instance p0, Landroidx/emoji2/viewsintegration/EmojiKeyListener;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiKeyListener;-><init>(Landroid/text/method/KeyListener;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method isEnabled()Z
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal19;->mTextWatcher:Landroidx/emoji2/viewsintegration/EmojiTextWatcher;
|
|
|
|
.line 322
|
|
invoke-virtual {p0}, Landroidx/emoji2/viewsintegration/EmojiTextWatcher;->isEnabled()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method onCreateInputConnection(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;
|
|
.locals 1
|
|
|
|
.line 303
|
|
instance-of v0, p1, Landroidx/emoji2/viewsintegration/EmojiInputConnection;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
.line 308
|
|
:cond_0
|
|
new-instance v0, Landroidx/emoji2/viewsintegration/EmojiInputConnection;
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal19;->mEditText:Landroid/widget/EditText;
|
|
|
|
invoke-direct {v0, p0, p1, p2}, Landroidx/emoji2/viewsintegration/EmojiInputConnection;-><init>(Landroid/widget/TextView;Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method setEmojiReplaceStrategy(I)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal19;->mTextWatcher:Landroidx/emoji2/viewsintegration/EmojiTextWatcher;
|
|
|
|
.line 277
|
|
invoke-virtual {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiTextWatcher;->setEmojiReplaceStrategy(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method setEnabled(Z)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal19;->mTextWatcher:Landroidx/emoji2/viewsintegration/EmojiTextWatcher;
|
|
|
|
.line 313
|
|
invoke-virtual {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiTextWatcher;->setEnabled(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method setMaxEmojiCount(I)V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal19;->mTextWatcher:Landroidx/emoji2/viewsintegration/EmojiTextWatcher;
|
|
|
|
.line 272
|
|
invoke-virtual {p0, p1}, Landroidx/emoji2/viewsintegration/EmojiTextWatcher;->setMaxEmojiCount(I)V
|
|
|
|
return-void
|
|
.end method
|