apkfuckery/com.discord/smali/androidx/appcompat/widget/AppCompatHintHelper.smali

58 lines
1.4 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/appcompat/widget/AppCompatHintHelper;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "AppCompatHintHelper.java"
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public static onCreateInputConnection(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;Landroid/view/View;)Landroid/view/inputmethod/InputConnection;
2019-07-24 11:27:29 +00:00
.locals 1
if-eqz p0, :cond_1
iget-object v0, p1, Landroid/view/inputmethod/EditorInfo;->hintText:Ljava/lang/CharSequence;
if-nez v0, :cond_1
invoke-virtual {p2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object p2
:goto_0
instance-of v0, p2, Landroid/view/View;
if-eqz v0, :cond_1
instance-of v0, p2, Landroidx/appcompat/widget/WithHint;
if-eqz v0, :cond_0
check-cast p2, Landroidx/appcompat/widget/WithHint;
invoke-interface {p2}, Landroidx/appcompat/widget/WithHint;->getHint()Ljava/lang/CharSequence;
move-result-object p2
iput-object p2, p1, Landroid/view/inputmethod/EditorInfo;->hintText:Ljava/lang/CharSequence;
goto :goto_1
:cond_0
invoke-interface {p2}, Landroid/view/ViewParent;->getParent()Landroid/view/ViewParent;
move-result-object p2
goto :goto_0
:cond_1
:goto_1
return-object p0
.end method