apkfuckery/com.discord/smali/androidx/appcompat/widget/AppCompatHintHelper.smali
2019-07-24 13:27:29 +02:00

57 lines
1.4 KiB
Smali

.class Landroidx/appcompat/widget/AppCompatHintHelper;
.super Ljava/lang/Object;
.source "AppCompatHintHelper.java"
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static onCreateInputConnection(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;Landroid/view/View;)Landroid/view/inputmethod/InputConnection;
.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