PhotoViewerCaptionEnterView$1.smali

.class Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$1;
.super Lim/tpelyyftgw/ui/components/EditTextCaption;
.source "PhotoViewerCaptionEnterView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;-><init>(Landroid/content/Context;Lim/tpelyyftgw/ui/components/SizeNotifierFrameLayoutPhoto;Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;


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

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;Landroid/content/Context;)V
    .registers 3
    .param p1, "this$0"    # Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;
    .param p2, "context"    # Landroid/content/Context;

    .line 122
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$1;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    invoke-direct {p0, p2}, Lim/tpelyyftgw/ui/components/EditTextCaption;-><init>(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method protected onMeasure(II)V
    .registers 6
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .line 126
    :try_start_0
    invoke-super {p0, p1, p2}, Lim/tpelyyftgw/ui/components/EditTextCaption;->onMeasure(II)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_3} :catch_4

    .line 130
    goto :goto_15

    .line 127
    :catch_4
    move-exception v0

    .line 128
    .local v0, "e":Ljava/lang/Exception;
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v1

    const/high16 v2, 0x424c0000    # 51.0f

    invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v2

    invoke-virtual {p0, v1, v2}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$1;->setMeasuredDimension(II)V

    .line 129
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 131
    .end local v0    # "e":Ljava/lang/Exception;
    :goto_15
    return-void
.end method

.method protected onSelectionChanged(II)V
    .registers 4
    .param p1, "selStart"    # I
    .param p2, "selEnd"    # I

    .line 135
    invoke-super {p0, p1, p2}, Lim/tpelyyftgw/ui/components/EditTextCaption;->onSelectionChanged(II)V

    .line 136
    if-eq p1, p2, :cond_a

    .line 137
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$1;->fixHandleView(Z)V

    goto :goto_e

    .line 139
    :cond_a
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$1;->fixHandleView(Z)V

    .line 141
    :goto_e
    return-void
.end method