PhotoPaintView$1.smali

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

# interfaces
.implements Lim/tpelyyftgw/ui/components/paint/RenderView$RenderViewDelegate;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/PhotoPaintView;-><init>(Landroid/content/Context;Landroid/graphics/Bitmap;I)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/PhotoPaintView;


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

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/ui/components/PhotoPaintView;)V
    .registers 2
    .param p1, "this$0"    # Lim/tpelyyftgw/ui/components/PhotoPaintView;

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

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

    return-void
.end method


# virtual methods
.method public onBeganDrawing()V
    .registers 3

    .line 135
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoPaintView$1;->this$0:Lim/tpelyyftgw/ui/components/PhotoPaintView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoPaintView;->currentEntityView:Lim/tpelyyftgw/ui/components/paint/views/EntityView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/PhotoPaintView;->access$000(Lim/tpelyyftgw/ui/components/PhotoPaintView;)Lim/tpelyyftgw/ui/components/paint/views/EntityView;

    move-result-object v0

    if-eqz v0, :cond_e

    .line 136
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoPaintView$1;->this$0:Lim/tpelyyftgw/ui/components/PhotoPaintView;

    const/4 v1, 0x0

    # invokes: Lim/tpelyyftgw/ui/components/PhotoPaintView;->selectEntity(Lim/tpelyyftgw/ui/components/paint/views/EntityView;)Z
    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/PhotoPaintView;->access$100(Lim/tpelyyftgw/ui/components/PhotoPaintView;Lim/tpelyyftgw/ui/components/paint/views/EntityView;)Z

    .line 138
    :cond_e
    return-void
.end method

.method public onFinishedDrawing(Z)V
    .registers 4
    .param p1, "moved"    # Z

    .line 142
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoPaintView$1;->this$0:Lim/tpelyyftgw/ui/components/PhotoPaintView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoPaintView;->colorPicker:Lim/tpelyyftgw/ui/components/paint/views/ColorPicker;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/PhotoPaintView;->access$300(Lim/tpelyyftgw/ui/components/PhotoPaintView;)Lim/tpelyyftgw/ui/components/paint/views/ColorPicker;

    move-result-object v0

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/PhotoPaintView$1;->this$0:Lim/tpelyyftgw/ui/components/PhotoPaintView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoPaintView;->undoStore:Lim/tpelyyftgw/ui/components/paint/UndoStore;
    invoke-static {v1}, Lim/tpelyyftgw/ui/components/PhotoPaintView;->access$200(Lim/tpelyyftgw/ui/components/PhotoPaintView;)Lim/tpelyyftgw/ui/components/paint/UndoStore;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/paint/UndoStore;->canUndo()Z

    move-result v1

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/paint/views/ColorPicker;->setUndoEnabled(Z)V

    .line 143
    return-void
.end method

.method public shouldDraw()Z
    .registers 4

    .line 147
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoPaintView$1;->this$0:Lim/tpelyyftgw/ui/components/PhotoPaintView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoPaintView;->currentEntityView:Lim/tpelyyftgw/ui/components/paint/views/EntityView;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/PhotoPaintView;->access$000(Lim/tpelyyftgw/ui/components/PhotoPaintView;)Lim/tpelyyftgw/ui/components/paint/views/EntityView;

    move-result-object v0

    if-nez v0, :cond_a

    const/4 v0, 0x1

    goto :goto_b

    :cond_a
    const/4 v0, 0x0

    .line 148
    .local v0, "draw":Z
    :goto_b
    if-nez v0, :cond_13

    .line 149
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/PhotoPaintView$1;->this$0:Lim/tpelyyftgw/ui/components/PhotoPaintView;

    const/4 v2, 0x0

    # invokes: Lim/tpelyyftgw/ui/components/PhotoPaintView;->selectEntity(Lim/tpelyyftgw/ui/components/paint/views/EntityView;)Z
    invoke-static {v1, v2}, Lim/tpelyyftgw/ui/components/PhotoPaintView;->access$100(Lim/tpelyyftgw/ui/components/PhotoPaintView;Lim/tpelyyftgw/ui/components/paint/views/EntityView;)Z

    .line 151
    :cond_13
    return v0
.end method