InputComponent.smali

.class public final Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;
.super Lsg/bigo/core/component/AbstractComponent;
.source "SourceFile"

# interfaces
.implements Landroid/text/TextWatcher;
.implements Lcom/imo/android/imoim/feeds/ui/cover/component/a;
.implements Lcom/imo/android/imoim/feeds/ui/detail/utils/h$a;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$a;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lsg/bigo/core/component/AbstractComponent<",
        "Lsg/bigo/core/mvp/presenter/a;",
        "Lsg/bigo/core/component/a/b;",
        "Lcom/imo/android/imoim/feeds/ui/a/b;",
        ">;",
        "Landroid/text/TextWatcher;",
        "Lcom/imo/android/imoim/feeds/ui/cover/component/a;",
        "Lcom/imo/android/imoim/feeds/ui/detail/utils/h$a;"
    }
.end annotation


# static fields
.field public static final a:Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$a;

# The value of this static final field might be set in the static constructor
.field private static final n:I = 0x23


# instance fields
.field private b:I

.field private c:Lcom/imo/android/imoim/feeds/ui/cover/data/CoverData;

.field private d:Lcom/imo/android/imoim/feeds/ui/cover/b/b;

.field private i:Landroid/widget/RelativeLayout;

.field private j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

.field private k:Lcom/imo/android/imoim/feeds/ui/cover/widget/LikeSoftKeyboardSizeWatchLayout;

.field private l:I

.field private m:Lsg/bigo/core/component/c;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lsg/bigo/core/component/c<",
            "Lcom/imo/android/imoim/feeds/ui/a/b;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .registers 2

    new-instance v0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$a;-><init>(Lkotlin/f/b/j;)V

    sput-object v0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->a:Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$a;

    const/16 v0, 0x23

    .line 205
    sput v0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->n:I

    return-void
.end method

.method public constructor <init>(Lsg/bigo/core/component/c;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lsg/bigo/core/component/c<",
            "Lcom/imo/android/imoim/feeds/ui/a/b;",
            ">;)V"
        }
    .end annotation

    const-string v0, "helper"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 41
    invoke-direct {p0, p1}, Lsg/bigo/core/component/AbstractComponent;-><init>(Lsg/bigo/core/component/c;)V

    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->m:Lsg/bigo/core/component/c;

    return-void
.end method

.method public static final synthetic a(Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;)Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;
    .registers 1

    .line 41
    iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    return-object p0
.end method

.method private final a(F)V
    .registers 3

    .line 114
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    if-nez v0, :cond_7

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_7
    invoke-virtual {v0, p1}, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;->setTranslationY(F)V

    return-void
.end method

.method public static final synthetic b(Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;)Lsg/bigo/core/component/a/d;
    .registers 1

    .line 41
    iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->f:Lsg/bigo/core/component/a/d;

    return-object p0
.end method

.method public static final synthetic c(Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;)Lcom/imo/android/imoim/feeds/ui/cover/widget/LikeSoftKeyboardSizeWatchLayout;
    .registers 1

    .line 41
    iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->k:Lcom/imo/android/imoim/feeds/ui/cover/widget/LikeSoftKeyboardSizeWatchLayout;

    return-object p0
.end method

.method private final c(I)V
    .registers 3

    .line 163
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->e()V

    .line 164
    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->b:I

    if-ge v0, p1, :cond_d

    int-to-float v0, v0

    int-to-float p1, p1

    sub-float/2addr v0, p1

    .line 165
    invoke-direct {p0, v0}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->a(F)V

    :cond_d
    return-void
.end method

.method private final d()V
    .registers 4

    .line 105
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->c:Lcom/imo/android/imoim/feeds/ui/cover/data/CoverData;

    if-eqz v0, :cond_41

    const/4 v1, 0x0

    if-eqz v0, :cond_a

    .line 2017
    iget-object v0, v0, Lcom/imo/android/imoim/feeds/ui/cover/data/CoverData;->c:Ljava/lang/String;

    goto :goto_b

    :cond_a
    move-object v0, v1

    :goto_b
    if-eqz v0, :cond_41

    .line 105
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    if-eqz v0, :cond_41

    if-eqz v0, :cond_20

    .line 106
    iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->c:Lcom/imo/android/imoim/feeds/ui/cover/data/CoverData;

    if-eqz v2, :cond_1a

    .line 3017
    iget-object v2, v2, Lcom/imo/android/imoim/feeds/ui/cover/data/CoverData;->c:Ljava/lang/String;

    goto :goto_1b

    :cond_1a
    move-object v2, v1

    .line 106
    :goto_1b
    check-cast v2, Ljava/lang/CharSequence;

    invoke-virtual {v0, v2}, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;->setText(Ljava/lang/CharSequence;)V

    .line 107
    :cond_20
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->c:Lcom/imo/android/imoim/feeds/ui/cover/data/CoverData;

    if-eqz v0, :cond_26

    .line 4017
    iget-object v1, v0, Lcom/imo/android/imoim/feeds/ui/cover/data/CoverData;->c:Ljava/lang/String;

    .line 107
    :cond_26
    check-cast v1, Ljava/lang/CharSequence;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_41

    .line 108
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->c:Lcom/imo/android/imoim/feeds/ui/cover/data/CoverData;

    if-eqz v0, :cond_41

    .line 5017
    iget-object v0, v0, Lcom/imo/android/imoim/feeds/ui/cover/data/CoverData;->c:Ljava/lang/String;

    if-eqz v0, :cond_41

    .line 108
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    if-eqz v1, :cond_41

    invoke-virtual {v1, v0}, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;->setSelection(I)V

    :cond_41
    return-void
.end method

.method private final e()V
    .registers 3

    .line 170
    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->l:I

    if-nez v0, :cond_17

    .line 171
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->h:Lsg/bigo/core/component/c/a;

    const-string v1, "mActivityServiceWrapper"

    invoke-static {v0, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v0, Lcom/imo/android/imoim/feeds/ui/a/b;

    invoke-interface {v0}, Lcom/imo/android/imoim/feeds/ui/a/b;->b()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/masala/share/utils/l;->c(Landroid/content/Context;)I

    move-result v0

    iput v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->l:I

    :cond_17
    return-void
.end method


# virtual methods
.method public final J_()V
    .registers 1

    return-void
.end method

.method public final a(I)V
    .registers 4

    .line 149
    new-instance v0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$c;

    invoke-direct {v0, p0}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$c;-><init>(Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;)V

    check-cast v0, Ljava/lang/Runnable;

    invoke-static {v0}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;)V

    .line 155
    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->b:I

    .line 156
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    if-nez v1, :cond_13

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_13
    invoke-virtual {v1}, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;->getTranslationY()F

    move-result v1

    int-to-float v0, v0

    cmpg-float v0, v1, v0

    if-nez v0, :cond_1d

    return-void

    .line 159
    :cond_1d
    invoke-direct {p0, p1}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->c(I)V

    return-void
.end method

.method public final a(Landroidx/lifecycle/LifecycleOwner;)V
    .registers 3

    .line 83
    invoke-super {p0, p1}, Lsg/bigo/core/component/AbstractComponent;->a(Landroidx/lifecycle/LifecycleOwner;)V

    const/4 p1, 0x0

    .line 84
    invoke-direct {p0, p1}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->a(F)V

    .line 85
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    if-nez p1, :cond_e

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_e
    move-object v0, p0

    check-cast v0, Landroid/text/TextWatcher;

    invoke-virtual {p1, v0}, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    return-void
.end method

.method public final a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lsg/bigo/core/component/a/b;",
            "Landroid/util/SparseArray<",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .line 131
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/a/a/a;->EVENT_COVER_DATA_CHANGE:Lcom/imo/android/imoim/feeds/ui/a/a/a;

    const/4 v1, 0x0

    if-ne p1, v0, :cond_1e

    if-eqz p2, :cond_1d

    .line 133
    invoke-virtual {p2, v1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    if-eqz p1, :cond_15

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/cover/data/CoverData;

    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->c:Lcom/imo/android/imoim/feeds/ui/cover/data/CoverData;

    .line 134
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->d()V

    return-void

    .line 133
    :cond_15
    new-instance p1, Lkotlin/TypeCastException;

    const-string p2, "null cannot be cast to non-null type com.imo.android.imoim.feeds.ui.cover.data.CoverData"

    invoke-direct {p1, p2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_1d
    return-void

    .line 137
    :cond_1e
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/a/a/a;->EVENT_COVER_VIEW_CHANGE:Lcom/imo/android/imoim/feeds/ui/a/a/a;

    if-ne p1, v0, :cond_ab

    if-eqz p2, :cond_ab

    .line 139
    invoke-virtual {p2, v1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    if-eqz p1, :cond_a3

    check-cast p1, Lcom/imo/android/imoim/feeds/ui/cover/b/b;

    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->d:Lcom/imo/android/imoim/feeds/ui/cover/b/b;

    if-eqz p1, :cond_a2

    .line 6088
    iget p2, p1, Lcom/imo/android/imoim/feeds/ui/cover/b/b;->a:I

    .line 7080
    iget v0, p1, Lcom/imo/android/imoim/feeds/ui/cover/b/b;->f:I

    sub-int/2addr p2, v0

    .line 5090
    div-int/lit8 p2, p2, 0x2

    .line 5091
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->i:Landroid/widget/RelativeLayout;

    if-nez v0, :cond_3e

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_3e
    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    if-eqz v0, :cond_9a

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    .line 7084
    iget v2, p1, Lcom/imo/android/imoim/feeds/ui/cover/b/b;->b:I

    .line 8076
    iget v3, p1, Lcom/imo/android/imoim/feeds/ui/cover/b/b;->e:I

    sub-int/2addr v2, v3

    .line 5092
    div-int/lit8 v2, v2, 0x2

    iput v2, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 9076
    iget p1, p1, Lcom/imo/android/imoim/feeds/ui/cover/b/b;->e:I

    .line 5093
    iput p1, v0, Landroid/widget/FrameLayout$LayoutParams;->width:I

    .line 5094
    iget p1, v0, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I

    add-int/2addr p1, p2

    iput p1, v0, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I

    .line 5095
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->i:Landroid/widget/RelativeLayout;

    if-nez p1, :cond_5f

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_5f
    check-cast v0, Landroid/view/ViewGroup$LayoutParams;

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 5096
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->i:Landroid/widget/RelativeLayout;

    if-nez p1, :cond_6b

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_6b
    invoke-virtual {p1, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 5097
    new-instance p1, Landroid/graphics/Rect;

    invoke-direct {p1}, Landroid/graphics/Rect;-><init>()V

    .line 5098
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    if-nez v0, :cond_7a

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_7a
    invoke-virtual {v0, p1}, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;->getGlobalVisibleRect(Landroid/graphics/Rect;)Z

    .line 5099
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    if-nez v0, :cond_84

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_84
    invoke-virtual {v0}, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/masala/share/utils/l;->b(Landroid/content/Context;)I

    move-result v0

    .line 5100
    iget p1, p1, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v0, p1

    const/16 p1, 0x32

    invoke-static {p1}, Lcom/masala/share/utils/l;->a(I)I

    move-result p1

    sub-int/2addr v0, p1

    add-int/2addr v0, p2

    iput v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->b:I

    return-void

    .line 5091
    :cond_9a
    new-instance p1, Lkotlin/TypeCastException;

    const-string p2, "null cannot be cast to non-null type android.widget.FrameLayout.LayoutParams"

    invoke-direct {p1, p2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_a2
    return-void

    .line 139
    :cond_a3
    new-instance p1, Lkotlin/TypeCastException;

    const-string p2, "null cannot be cast to non-null type com.imo.android.imoim.feeds.ui.cover.mannager.MediaManager"

    invoke-direct {p1, p2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_ab
    return-void
.end method

.method public final a(Lsg/bigo/core/component/b/c;)V
    .registers 3

    const-string v0, "manager"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 122
    const-class v0, Lcom/imo/android/imoim/feeds/ui/cover/component/a;

    invoke-interface {p1, v0}, Lsg/bigo/core/component/b/c;->a(Ljava/lang/Class;)V

    return-void
.end method

.method public final afterTextChanged(Landroid/text/Editable;)V
    .registers 4

    .line 198
    new-instance v0, Landroid/util/SparseArray;

    invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V

    if-eqz p1, :cond_d

    .line 199
    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_f

    :cond_d
    const-string p1, ""

    :cond_f
    const/4 v1, 0x0

    invoke-virtual {v0, v1, p1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 200
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->f:Lsg/bigo/core/component/a/d;

    sget-object v1, Lcom/imo/android/imoim/feeds/ui/a/a/a;->EVENT_COVER_TITLE_CHANGED:Lcom/imo/android/imoim/feeds/ui/a/a/a;

    check-cast v1, Lsg/bigo/core/component/a/b;

    invoke-interface {p1, v1, v0}, Lsg/bigo/core/component/a/d;->a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V

    return-void
.end method

.method public final b()V
    .registers 7

    .line 55
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->h:Lsg/bigo/core/component/c/a;

    check-cast v0, Lcom/imo/android/imoim/feeds/ui/a/b;

    const v1, 0x7e08005c

    invoke-interface {v0, v1}, Lcom/imo/android/imoim/feeds/ui/a/b;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    .line 56
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->h:Lsg/bigo/core/component/c/a;

    check-cast v0, Lcom/imo/android/imoim/feeds/ui/a/b;

    const v1, 0x7e080135

    invoke-interface {v0, v1}, Lcom/imo/android/imoim/feeds/ui/a/b;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/imo/android/imoim/feeds/ui/cover/widget/LikeSoftKeyboardSizeWatchLayout;

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->k:Lcom/imo/android/imoim/feeds/ui/cover/widget/LikeSoftKeyboardSizeWatchLayout;

    .line 57
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->h:Lsg/bigo/core/component/c/a;

    check-cast v0, Lcom/imo/android/imoim/feeds/ui/a/b;

    const v1, 0x7e080138

    invoke-interface {v0, v1}, Lcom/imo/android/imoim/feeds/ui/a/b;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->i:Landroid/widget/RelativeLayout;

    .line 58
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    if-eqz v0, :cond_38

    sget-object v1, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$d;->a:Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$d;

    check-cast v1, Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 61
    :cond_38
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    if-nez v0, :cond_3f

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_3f
    const/4 v1, 0x1

    new-array v2, v1, [Landroid/text/InputFilter;

    const/4 v3, 0x0

    new-instance v4, Lcom/imo/android/imoim/feeds/ui/cover/c/a;

    sget v5, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->n:I

    invoke-direct {v4, v5}, Lcom/imo/android/imoim/feeds/ui/cover/c/a;-><init>(I)V

    check-cast v4, Landroid/text/InputFilter;

    aput-object v4, v2, v3

    invoke-virtual {v0, v2}, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;->setFilters([Landroid/text/InputFilter;)V

    .line 62
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    if-nez v0, :cond_58

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_58
    new-instance v2, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$e;

    invoke-direct {v2, p0}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$e;-><init>(Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;)V

    check-cast v2, Landroid/view/View$OnKeyListener;

    invoke-virtual {v0, v2}, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V

    .line 75
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->j:Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;

    if-nez v0, :cond_69

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_69
    move-object v2, p0

    check-cast v2, Landroid/text/TextWatcher;

    invoke-virtual {v0, v2}, Lcom/imo/android/imoim/feeds/ui/cover/widget/CoverEditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 76
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->d()V

    .line 78
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->k:Lcom/imo/android/imoim/feeds/ui/cover/widget/LikeSoftKeyboardSizeWatchLayout;

    if-nez v0, :cond_79

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_79
    move-object v2, p0

    check-cast v2, Lcom/imo/android/imoim/feeds/ui/detail/utils/h$a;

    const-string v3, "l"

    invoke-static {v2, v3}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1024
    iget-object v0, v0, Lcom/imo/android/imoim/feeds/ui/cover/widget/LikeSoftKeyboardSizeWatchLayout;->a:Lcom/imo/android/imoim/feeds/ui/detail/utils/h;

    invoke-virtual {v0, v2}, Lcom/imo/android/imoim/feeds/ui/detail/utils/h;->a(Lcom/imo/android/imoim/feeds/ui/detail/utils/h$a;)V

    .line 79
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->k:Lcom/imo/android/imoim/feeds/ui/cover/widget/LikeSoftKeyboardSizeWatchLayout;

    if-nez v0, :cond_8d

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_8d
    invoke-virtual {v0, v1}, Lcom/imo/android/imoim/feeds/ui/cover/widget/LikeSoftKeyboardSizeWatchLayout;->setClickable(Z)V

    return-void
.end method

.method public final b(I)V
    .registers 2

    .line 176
    invoke-direct {p0, p1}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->c(I)V

    return-void
.end method

.method public final b(Lsg/bigo/core/component/b/c;)V
    .registers 4

    const-string v0, "manager"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 126
    const-class v0, Lcom/imo/android/imoim/feeds/ui/cover/component/a;

    move-object v1, p0

    check-cast v1, Lsg/bigo/core/component/b/b;

    invoke-interface {p1, v0, v1}, Lsg/bigo/core/component/b/c;->a(Ljava/lang/Class;Lsg/bigo/core/component/b/b;)V

    return-void
.end method

.method public final beforeTextChanged(Ljava/lang/CharSequence;III)V
    .registers 5

    return-void
.end method

.method public final c()V
    .registers 5

    const/4 v0, 0x0

    .line 180
    invoke-direct {p0, v0}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->a(F)V

    .line 181
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;->k:Lcom/imo/android/imoim/feeds/ui/cover/widget/LikeSoftKeyboardSizeWatchLayout;

    if-nez v0, :cond_b

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_b
    new-instance v1, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$b;

    invoke-direct {v1, p0}, Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent$b;-><init>(Lcom/imo/android/imoim/feeds/ui/cover/component/impl/InputComponent;)V

    check-cast v1, Ljava/lang/Runnable;

    const-wide/16 v2, 0x96

    invoke-virtual {v0, v1, v2, v3}, Lcom/imo/android/imoim/feeds/ui/cover/widget/LikeSoftKeyboardSizeWatchLayout;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method public final onTextChanged(Ljava/lang/CharSequence;III)V
    .registers 5

    return-void
.end method

.method public final u()[Lsg/bigo/core/component/a/b;
    .registers 4

    const/4 v0, 0x2

    new-array v0, v0, [Lsg/bigo/core/component/a/b;

    .line 118
    sget-object v1, Lcom/imo/android/imoim/feeds/ui/a/a/a;->EVENT_COVER_DATA_CHANGE:Lcom/imo/android/imoim/feeds/ui/a/a/a;

    check-cast v1, Lsg/bigo/core/component/a/b;

    const/4 v2, 0x0

    aput-object v1, v0, v2

    sget-object v1, Lcom/imo/android/imoim/feeds/ui/a/a/a;->EVENT_COVER_VIEW_CHANGE:Lcom/imo/android/imoim/feeds/ui/a/a/a;

    check-cast v1, Lsg/bigo/core/component/a/b;

    const/4 v2, 0x1

    aput-object v1, v0, v2

    return-object v0
.end method