.class public final Landroidx/emoji2/viewsintegration/EmojiEditTextHelper; .super Ljava/lang/Object; .source "SourceFile" # 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 (Landroid/widget/EditText;)V .locals 1 .param p1 # Landroid/widget/EditText; .annotation build Landroidx/annotation/NonNull; .end annotation .end param const/4 v0, 0x1 .line 83 invoke-direct {p0, p1, v0}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->(Landroid/widget/EditText;Z)V return-void .end method .method public constructor (Landroid/widget/EditText;Z)V .locals 1 .param p1 # Landroid/widget/EditText; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .line 105 invoke-direct {p0}, Ljava/lang/Object;->()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;->(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 1 .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope; } .end annotation iget v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mEmojiReplaceStrategy:I return v0 .end method .method public getKeyListener(Landroid/text/method/KeyListener;)Landroid/text/method/KeyListener; .locals 1 .param p1 # Landroid/text/method/KeyListener; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation iget-object v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal; .line 155 invoke-virtual {v0, p1}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->getKeyListener(Landroid/text/method/KeyListener;)Landroid/text/method/KeyListener; move-result-object p1 return-object p1 .end method .method public getMaxEmojiCount()I .locals 1 iget v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mMaxEmojiCount:I return v0 .end method .method public isEnabled()Z .locals 1 iget-object v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal; .line 214 invoke-virtual {v0}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->isEnabled()Z move-result v0 return v0 .end method .method public onCreateInputConnection(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection; .locals 1 .param p1 # Landroid/view/inputmethod/InputConnection; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p2 # Landroid/view/inputmethod/EditorInfo; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation if-nez p1, :cond_0 const/4 p1, 0x0 return-object p1 :cond_0 iget-object v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal; .line 174 invoke-virtual {v0, p1, p2}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->onCreateInputConnection(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection; move-result-object p1 return-object p1 .end method .method public setEmojiReplaceStrategy(I)V .locals 1 .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope; } .end annotation iput p1, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mEmojiReplaceStrategy:I iget-object v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal; .line 190 invoke-virtual {v0, p1}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->setEmojiReplaceStrategy(I)V return-void .end method .method public setEnabled(Z)V .locals 1 iget-object v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal; .line 227 invoke-virtual {v0, p1}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->setEnabled(Z)V return-void .end method .method public setMaxEmojiCount(I)V .locals 1 .param p1 # I .annotation build Landroidx/annotation/IntRange; from = 0x0L .end annotation .end param 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 v0, p0, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper;->mHelper:Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal; .line 129 invoke-virtual {v0, p1}, Landroidx/emoji2/viewsintegration/EmojiEditTextHelper$HelperInternal;->setMaxEmojiCount(I)V return-void .end method