ThemeEditorView$2.smali

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

# interfaces
.implements Lim/tpelyyftgw/ui/components/WallpaperUpdater$WallpaperUpdaterDelegate;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/ThemeEditorView;->show(Landroid/app/Activity;Lim/tpelyyftgw/ui/actionbar/Theme$ThemeInfo;)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/ThemeEditorView;


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

    return-void
.end method

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

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

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

    return-void
.end method


# virtual methods
.method public didSelectWallpaper(Ljava/io/File;Landroid/graphics/Bitmap;Z)V
    .registers 5
    .param p1, "file"    # Ljava/io/File;
    .param p2, "bitmap"    # Landroid/graphics/Bitmap;
    .param p3, "gallery"    # Z

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

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$4500(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Lim/tpelyyftgw/ui/actionbar/Theme$ThemeInfo;

    move-result-object v0

    invoke-static {v0, p2, p1}, Lim/tpelyyftgw/ui/actionbar/Theme;->setThemeWallpaper(Lim/tpelyyftgw/ui/actionbar/Theme$ThemeInfo;Landroid/graphics/Bitmap;Ljava/io/File;)V

    .line 1497
    return-void
.end method

.method public needOpenColorPicker()V
    .registers 5

    .line 1501
    const/4 v0, 0x0

    .local v0, "a":I
    :goto_1
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$2;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;

    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$1100(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_32

    .line 1502
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$2;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;

    invoke-static {v1}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$1100(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lim/tpelyyftgw/ui/actionbar/ThemeDescription;

    .line 1503
    .local v1, "description":Lim/tpelyyftgw/ui/actionbar/ThemeDescription;
    invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/ThemeDescription;->startEditing()V

    .line 1504
    if-nez v0, :cond_2f

    .line 1505
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$2;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5100(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    move-result-object v2

    # getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->colorPicker:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$ColorPicker;
    invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$2000(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$ColorPicker;

    move-result-object v2

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/ThemeDescription;->getCurrentColor()I

    move-result v3

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$ColorPicker;->setColor(I)V

    .line 1501
    .end local v1    # "description":Lim/tpelyyftgw/ui/actionbar/ThemeDescription;
    :cond_2f
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 1508
    .end local v0    # "a":I
    :cond_32
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$2;->this$0:Lim/tpelyyftgw/ui/components/ThemeEditorView;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ThemeEditorView;->access$5100(Lim/tpelyyftgw/ui/components/ThemeEditorView;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    move-result-object v0

    const/4 v1, 0x1

    # invokes: Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->setColorPickerVisible(Z)V
    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$5900(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;Z)V

    .line 1509
    return-void
.end method