EditTextCaption$2.smali

.class Lim/tpelyyftgw/ui/components/EditTextCaption$2;
.super Ljava/lang/Object;
.source "EditTextCaption.java"

# interfaces
.implements Landroid/view/ActionMode$Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/EditTextCaption;->overrideCallback(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode$Callback;
.end annotation

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


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

.field final synthetic val$callback:Landroid/view/ActionMode$Callback;


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

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/ui/components/EditTextCaption;Landroid/view/ActionMode$Callback;)V
    .registers 3
    .param p1, "this$0"    # Lim/tpelyyftgw/ui/components/EditTextCaption;

    .line 226
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->this$0:Lim/tpelyyftgw/ui/components/EditTextCaption;

    iput-object p2, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->val$callback:Landroid/view/ActionMode$Callback;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onActionItemClicked(Landroid/view/ActionMode;Landroid/view/MenuItem;)Z
    .registers 6
    .param p1, "mode"    # Landroid/view/ActionMode;
    .param p2, "item"    # Landroid/view/MenuItem;

    .line 240
    invoke-interface {p2}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const/4 v1, 0x1

    const v2, 0x7f0902fc

    if-ne v0, v2, :cond_13

    .line 241
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->this$0:Lim/tpelyyftgw/ui/components/EditTextCaption;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->makeSelectedRegular()V

    .line 242
    invoke-virtual {p1}, Landroid/view/ActionMode;->finish()V

    .line 243
    return v1

    .line 244
    :cond_13
    invoke-interface {p2}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v2, 0x7f0902f6

    if-ne v0, v2, :cond_25

    .line 245
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->this$0:Lim/tpelyyftgw/ui/components/EditTextCaption;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->makeSelectedBold()V

    .line 246
    invoke-virtual {p1}, Landroid/view/ActionMode;->finish()V

    .line 247
    return v1

    .line 248
    :cond_25
    invoke-interface {p2}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v2, 0x7f0902f9

    if-ne v0, v2, :cond_37

    .line 249
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->this$0:Lim/tpelyyftgw/ui/components/EditTextCaption;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->makeSelectedItalic()V

    .line 250
    invoke-virtual {p1}, Landroid/view/ActionMode;->finish()V

    .line 251
    return v1

    .line 252
    :cond_37
    invoke-interface {p2}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v2, 0x7f0902fb

    if-ne v0, v2, :cond_49

    .line 253
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->this$0:Lim/tpelyyftgw/ui/components/EditTextCaption;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->makeSelectedMono()V

    .line 254
    invoke-virtual {p1}, Landroid/view/ActionMode;->finish()V

    .line 255
    return v1

    .line 256
    :cond_49
    invoke-interface {p2}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v2, 0x7f0902fa

    if-ne v0, v2, :cond_5b

    .line 257
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->this$0:Lim/tpelyyftgw/ui/components/EditTextCaption;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->makeSelectedUrl()V

    .line 258
    invoke-virtual {p1}, Landroid/view/ActionMode;->finish()V

    .line 259
    return v1

    .line 260
    :cond_5b
    invoke-interface {p2}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v2, 0x7f0902fd

    if-ne v0, v2, :cond_6d

    .line 261
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->this$0:Lim/tpelyyftgw/ui/components/EditTextCaption;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->makeSelectedStrike()V

    .line 262
    invoke-virtual {p1}, Landroid/view/ActionMode;->finish()V

    .line 263
    return v1

    .line 264
    :cond_6d
    invoke-interface {p2}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v2, 0x7f0902fe

    if-ne v0, v2, :cond_7f

    .line 265
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->this$0:Lim/tpelyyftgw/ui/components/EditTextCaption;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->makeSelectedUnderline()V

    .line 266
    invoke-virtual {p1}, Landroid/view/ActionMode;->finish()V

    .line 267
    return v1

    .line 270
    :cond_7f
    :try_start_7f
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->val$callback:Landroid/view/ActionMode$Callback;

    invoke-interface {v0, p1, p2}, Landroid/view/ActionMode$Callback;->onActionItemClicked(Landroid/view/ActionMode;Landroid/view/MenuItem;)Z

    move-result v0
    :try_end_85
    .catch Ljava/lang/Exception; {:try_start_7f .. :try_end_85} :catch_86

    return v0

    .line 271
    :catch_86
    move-exception v0

    .line 274
    return v1
.end method

.method public onCreateActionMode(Landroid/view/ActionMode;Landroid/view/Menu;)Z
    .registers 5
    .param p1, "mode"    # Landroid/view/ActionMode;
    .param p2, "menu"    # Landroid/view/Menu;

    .line 229
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->this$0:Lim/tpelyyftgw/ui/components/EditTextCaption;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextCaption;->access$002(Lim/tpelyyftgw/ui/components/EditTextCaption;Z)Z

    .line 230
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->val$callback:Landroid/view/ActionMode$Callback;

    invoke-interface {v0, p1, p2}, Landroid/view/ActionMode$Callback;->onCreateActionMode(Landroid/view/ActionMode;Landroid/view/Menu;)Z

    move-result v0

    return v0
.end method

.method public onDestroyActionMode(Landroid/view/ActionMode;)V
    .registers 4
    .param p1, "mode"    # Landroid/view/ActionMode;

    .line 279
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->this$0:Lim/tpelyyftgw/ui/components/EditTextCaption;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextCaption;->access$002(Lim/tpelyyftgw/ui/components/EditTextCaption;Z)Z

    .line 280
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->val$callback:Landroid/view/ActionMode$Callback;

    invoke-interface {v0, p1}, Landroid/view/ActionMode$Callback;->onDestroyActionMode(Landroid/view/ActionMode;)V

    .line 281
    return-void
.end method

.method public onPrepareActionMode(Landroid/view/ActionMode;Landroid/view/Menu;)Z
    .registers 4
    .param p1, "mode"    # Landroid/view/ActionMode;
    .param p2, "menu"    # Landroid/view/Menu;

    .line 235
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;->val$callback:Landroid/view/ActionMode$Callback;

    invoke-interface {v0, p1, p2}, Landroid/view/ActionMode$Callback;->onPrepareActionMode(Landroid/view/ActionMode;Landroid/view/Menu;)Z

    move-result v0

    return v0
.end method