.class public Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;
.super Landroid/widget/LinearLayout;
.source "SourceFile"


# instance fields
.field private b:Landroid/widget/ImageButton;

.field private c:Landroid/widget/ImageButton;

.field private d:Landroid/widget/ImageButton;

.field private e:Landroid/widget/ImageButton;

.field private f:Landroid/widget/ImageButton;

.field private g:Landroid/widget/ImageButton;

.field private h:Landroid/widget/ImageButton;

.field private final i:Ljava/util/HashSet;

.field private yellow:Landroid/widget/ImageButton;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    new-instance p2, Ljava/util/HashSet;

    invoke-direct {p2}, Ljava/util/HashSet;-><init>()V

    iput-object p2, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->i:Ljava/util/HashSet;

    invoke-direct {p0, p1}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->q(Landroid/content/Context;)V

    return-void
.end method

.method private static synthetic A(Ljava/lang/Throwable;)V
    .locals 2

    invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string v1, "ColorOptionsToolBar"

    invoke-static {v1, v0, p0}, Ltz/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    return-void
.end method

.method private synthetic B(Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    sget-object p3, Lee0/l2;->BLUE:Lee0/l2;

    invoke-direct {p0, p3, p1, p2}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->o(Lee0/l2;Lu50/y2;Ls50/b;)V

    return-void
.end method

.method private static synthetic C(Ljava/lang/Throwable;)V
    .locals 2

    invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string v1, "ColorOptionsToolBar"

    invoke-static {v1, v0, p0}, Ltz/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    return-void
.end method

.method private synthetic D(Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    sget-object p3, Lee0/l2;->GREEN:Lee0/l2;

    invoke-direct {p0, p3, p1, p2}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->o(Lee0/l2;Lu50/y2;Ls50/b;)V

    return-void
.end method

.method private static synthetic E(Ljava/lang/Throwable;)V
    .locals 2

    invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string v1, "ColorOptionsToolBar"

    invoke-static {v1, v0, p0}, Ltz/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    return-void
.end method

.method private H(Landroid/widget/ImageView;Lee0/l2;)V
    .locals 4

    if-nez p2, :cond_0

    return-void

    :cond_0
    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v0

    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result v1

    if-le v0, v1, :cond_1

    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result v0

    goto :goto_0

    :cond_1
    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v0

    :goto_0
    iget-object v1, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->i:Ljava/util/HashSet;

    invoke-virtual {v1, p2}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_2

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p2, v1}, Lee0/l2;->h(Landroid/content/Context;)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    new-instance v1, Landroid/graphics/drawable/GradientDrawable;

    sget-object v3, Landroid/graphics/drawable/GradientDrawable$Orientation;->TL_BR:Landroid/graphics/drawable/GradientDrawable$Orientation;

    filled-new-array {p2, p2, p2, p2, v2}, [I

    move-result-object p2

    invoke-direct {v1, v3, p2}, Landroid/graphics/drawable/GradientDrawable;-><init>(Landroid/graphics/drawable/GradientDrawable$Orientation;[I)V

    const/4 p2, 0x1

    invoke-virtual {v1, p2}, Landroid/graphics/drawable/GradientDrawable;->setGradientType(I)V

    div-int/lit8 v0, v0, 0x2

    int-to-float p2, v0

    invoke-virtual {v1, p2}, Landroid/graphics/drawable/GradientDrawable;->setGradientRadius(F)V

    const/16 p2, 0x96

    invoke-virtual {v1, p2}, Landroid/graphics/drawable/GradientDrawable;->setAlpha(I)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1

    :cond_2
    invoke-virtual {p1, v2}, Landroid/view/View;->setBackgroundColor(I)V

    :goto_1
    return-void
.end method

.method private I()V
    .locals 2

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->b:Landroid/widget/ImageButton;

    sget-object v1, Lee0/l2;->DEFAULT:Lee0/l2;

    invoke-direct {p0, v0, v1}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->H(Landroid/widget/ImageView;Lee0/l2;)V

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->c:Landroid/widget/ImageButton;

    sget-object v1, Lee0/l2;->PINK:Lee0/l2;

    invoke-direct {p0, v0, v1}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->H(Landroid/widget/ImageView;Lee0/l2;)V

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->d:Landroid/widget/ImageButton;

    sget-object v1, Lee0/l2;->PURPLE:Lee0/l2;

    invoke-direct {p0, v0, v1}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->H(Landroid/widget/ImageView;Lee0/l2;)V

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->e:Landroid/widget/ImageButton;

    sget-object v1, Lee0/l2;->BLUE:Lee0/l2;

    invoke-direct {p0, v0, v1}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->H(Landroid/widget/ImageView;Lee0/l2;)V

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->f:Landroid/widget/ImageButton;

    sget-object v1, Lee0/l2;->GREEN:Lee0/l2;

    invoke-direct {p0, v0, v1}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->H(Landroid/widget/ImageView;Lee0/l2;)V

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->g:Landroid/widget/ImageButton;

    sget-object v1, Lee0/l2;->ORANGE:Lee0/l2;

    invoke-direct {p0, v0, v1}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->H(Landroid/widget/ImageView;Lee0/l2;)V

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->h:Landroid/widget/ImageButton;

    sget-object v1, Lee0/l2;->RED:Lee0/l2;

    invoke-direct {p0, v0, v1}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->H(Landroid/widget/ImageView;Lee0/l2;)V

## YKit-BringBackPhoebe
    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->yellow:Landroid/widget/ImageButton;
    if-eqz v0, :post_bringBackPhoebe2

    sget-object v1, Lee0/l2;->YELLOW:Lee0/l2;

    invoke-direct {p0, v0, v1}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->H(Landroid/widget/ImageView;Lee0/l2;)V
    :post_bringBackPhoebe2
## /YKit-BringBackPhoebe

    return-void
.end method

.method public static synthetic a(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->v(Lu50/y2;Ls50/b;Ldh0/f0;)V

    return-void
.end method

.method public static synthetic b(Ljava/lang/Throwable;)V
    .locals 0

    invoke-static {p0}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->u(Ljava/lang/Throwable;)V

    return-void
.end method

.method public static synthetic c(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->x(Lu50/y2;Ls50/b;Ldh0/f0;)V

    return-void
.end method

.method public static synthetic d(Ljava/lang/Throwable;)V
    .locals 0

    invoke-static {p0}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->E(Ljava/lang/Throwable;)V

    return-void
.end method

.method public static synthetic e(Ljava/lang/Throwable;)V
    .locals 0

    invoke-static {p0}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->C(Ljava/lang/Throwable;)V

    return-void
.end method

.method public static synthetic f(Ljava/lang/Throwable;)V
    .locals 0

    invoke-static {p0}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->s(Ljava/lang/Throwable;)V

    return-void
.end method

.method public static synthetic g(Ljava/lang/Throwable;)V
    .locals 0

    invoke-static {p0}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->w(Ljava/lang/Throwable;)V

    return-void
.end method

.method public static synthetic h(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->z(Lu50/y2;Ls50/b;Ldh0/f0;)V

    return-void
.end method

.method public static synthetic i(Ljava/lang/Throwable;)V
    .locals 0

    invoke-static {p0}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->y(Ljava/lang/Throwable;)V

    return-void
.end method

.method public static synthetic j(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->t(Lu50/y2;Ls50/b;Ldh0/f0;)V

    return-void
.end method

.method public static synthetic k(Ljava/lang/Throwable;)V
    .locals 0

    invoke-static {p0}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->A(Ljava/lang/Throwable;)V

    return-void
.end method

.method public static synthetic l(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->D(Lu50/y2;Ls50/b;Ldh0/f0;)V

    return-void
.end method

.method public static synthetic m(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->r(Lu50/y2;Ls50/b;Ldh0/f0;)V

    return-void
.end method

.method public static synthetic n(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->B(Lu50/y2;Ls50/b;Ldh0/f0;)V

    return-void
.end method

.method private o(Lee0/l2;Lu50/y2;Ls50/b;)V
    .locals 2

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p1, v0}, Lee0/l2;->g(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

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

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->i:Ljava/util/HashSet;

    invoke-virtual {v0, p1}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->i:Ljava/util/HashSet;

    invoke-virtual {v0, p1}, Ljava/util/HashSet;->remove(Ljava/lang/Object;)Z

    invoke-virtual {p2, p1}, Lu50/y2;->e(Lee0/l2;)V

    goto :goto_0

    :cond_0
    invoke-virtual {p1}, Lee0/l2;->i()Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->i:Ljava/util/HashSet;

    invoke-virtual {v0, p1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    new-instance v0, Lu50/d1;

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p1, v1}, Lee0/l2;->g(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lu50/d1;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2, v0}, Lu50/y2;->a(Lu50/d1;)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->i:Ljava/util/HashSet;

    invoke-virtual {v0}, Ljava/util/HashSet;->clear()V

    invoke-virtual {p2}, Lu50/y2;->f()V

    :goto_0
    sget-object p2, Lcom/tumblr/analytics/ScreenType;->CANVAS:Lcom/tumblr/analytics/ScreenType;

    invoke-virtual {p1}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object p1

    sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;

    invoke-virtual {p1, v0}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;

    move-result-object p1

    invoke-interface {p3, p2, p1}, Ls50/b;->Q0(Lcom/tumblr/analytics/ScreenType;Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->I()V

    :cond_2
    return-void
.end method

.method private q(Landroid/content/Context;)V
    .locals 4 ## YKit-BringBackPhoebe

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    sget v0, Lcom/tumblr/R$layout;->i0:I

    const/4 v1, 0x1

    invoke-virtual {p1, v0, p0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->setOrientation(I)V

    sget p1, Lcom/tumblr/R$id;->Rk:I

    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageButton;

    iput-object p1, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->b:Landroid/widget/ImageButton;

    sget p1, Lcom/tumblr/R$id;->Uk:I

    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageButton;

    iput-object p1, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->c:Landroid/widget/ImageButton;

    sget p1, Lcom/tumblr/R$id;->Vk:I

    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageButton;

    iput-object p1, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->d:Landroid/widget/ImageButton;

    sget p1, Lcom/tumblr/R$id;->Qk:I

    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageButton;

    iput-object p1, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->e:Landroid/widget/ImageButton;

    sget p1, Lcom/tumblr/R$id;->Sk:I

    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageButton;

    iput-object p1, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->f:Landroid/widget/ImageButton;

    sget p1, Lcom/tumblr/R$id;->Tk:I

    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageButton;

    iput-object p1, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->g:Landroid/widget/ImageButton;

    sget p1, Lcom/tumblr/R$id;->Wk:I

    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageButton;

    iput-object p1, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->h:Landroid/widget/ImageButton;

## YKit-BringBackPhoebe
    const p1, 0x7f0bf002

    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
    move-result-object p1

    # Disable the widget and skip if bringBackPhoebe has not been enabled/has been disabled
    sget-boolean v2, Ldev/maelstrom/ykit/settings/YkitCurrentSettings;->bringBackPhoebeEnabled:Z
    if-nez v2, :post_disablePhoebe

    const v3, 0x8
    invoke-virtual {p1, v3}, Landroid/view/View;->setVisibility(I)V

    goto :post_bringBackPhoebe3
    :post_disablePhoebe

    check-cast p1, Landroid/widget/ImageButton;

    iput-object p1, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->yellow:Landroid/widget/ImageButton;
    :post_bringBackPhoebe3
## /YKit-BringBackPhoebe

    return-void
.end method

.method private synthetic r(Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    sget-object p3, Lee0/l2;->DEFAULT:Lee0/l2;

    invoke-direct {p0, p3, p1, p2}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->o(Lee0/l2;Lu50/y2;Ls50/b;)V

    return-void
.end method

.method private static synthetic s(Ljava/lang/Throwable;)V
    .locals 2

    invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string v1, "ColorOptionsToolBar"

    invoke-static {v1, v0, p0}, Ltz/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    return-void
.end method

.method private synthetic t(Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    sget-object p3, Lee0/l2;->ORANGE:Lee0/l2;

    invoke-direct {p0, p3, p1, p2}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->o(Lee0/l2;Lu50/y2;Ls50/b;)V

    return-void
.end method

.method private static synthetic u(Ljava/lang/Throwable;)V
    .locals 2

    invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string v1, "ColorOptionsToolBar"

    invoke-static {v1, v0, p0}, Ltz/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    return-void
.end method

.method private synthetic v(Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    sget-object p3, Lee0/l2;->RED:Lee0/l2;

    invoke-direct {p0, p3, p1, p2}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->o(Lee0/l2;Lu50/y2;Ls50/b;)V

    return-void
.end method

.method private static synthetic w(Ljava/lang/Throwable;)V
    .locals 2

    invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string v1, "ColorOptionsToolBar"

    invoke-static {v1, v0, p0}, Ltz/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    return-void
.end method

.method private synthetic x(Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    sget-object p3, Lee0/l2;->PINK:Lee0/l2;

    invoke-direct {p0, p3, p1, p2}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->o(Lee0/l2;Lu50/y2;Ls50/b;)V

    return-void
.end method

.method private static synthetic y(Ljava/lang/Throwable;)V
    .locals 2

    invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string v1, "ColorOptionsToolBar"

    invoke-static {v1, v0, p0}, Ltz/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    return-void
.end method

.method private synthetic z(Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    sget-object p3, Lee0/l2;->PURPLE:Lee0/l2;

    invoke-direct {p0, p3, p1, p2}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->o(Lee0/l2;Lu50/y2;Ls50/b;)V

    return-void
.end method

## YKit-BringBackPhoebe
.method private synthetic setYellow(Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    sget-object p3, Lee0/l2;->YELLOW:Lee0/l2;

    invoke-direct {p0, p3, p1, p2}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->o(Lee0/l2;Lu50/y2;Ls50/b;)V

    return-void
.end method

.method public static synthetic setYellowProxy(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;Ldh0/f0;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->setYellow(Lu50/y2;Ls50/b;Ldh0/f0;)V

    return-void
.end method
## /YKit-BringBackPhoebe


# virtual methods
.method public F(Lcg0/a;Lu50/y2;Ls50/b;)V
    .locals 3

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->b:Landroid/widget/ImageButton;

    invoke-static {v0}, Luk/a;->a(Landroid/view/View;)Lyf0/o;

    move-result-object v0

    new-instance v1, Lx50/a;

    invoke-direct {v1, p0, p2, p3}, Lx50/a;-><init>(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;)V

    new-instance v2, Lx50/j;

    invoke-direct {v2}, Lx50/j;-><init>()V

    invoke-virtual {v0, v1, v2}, Lyf0/o;->subscribe(Lfg0/f;Lfg0/f;)Lcg0/b;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcg0/a;->b(Lcg0/b;)Z

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->c:Landroid/widget/ImageButton;

    invoke-static {v0}, Luk/a;->a(Landroid/view/View;)Lyf0/o;

    move-result-object v0

    new-instance v1, Lx50/k;

    invoke-direct {v1, p0, p2, p3}, Lx50/k;-><init>(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;)V

    new-instance v2, Lx50/l;

    invoke-direct {v2}, Lx50/l;-><init>()V

    invoke-virtual {v0, v1, v2}, Lyf0/o;->subscribe(Lfg0/f;Lfg0/f;)Lcg0/b;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcg0/a;->b(Lcg0/b;)Z

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->d:Landroid/widget/ImageButton;

    invoke-static {v0}, Luk/a;->a(Landroid/view/View;)Lyf0/o;

    move-result-object v0

    new-instance v1, Lx50/m;

    invoke-direct {v1, p0, p2, p3}, Lx50/m;-><init>(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;)V

    new-instance v2, Lx50/n;

    invoke-direct {v2}, Lx50/n;-><init>()V

    invoke-virtual {v0, v1, v2}, Lyf0/o;->subscribe(Lfg0/f;Lfg0/f;)Lcg0/b;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcg0/a;->b(Lcg0/b;)Z

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->e:Landroid/widget/ImageButton;

    invoke-static {v0}, Luk/a;->a(Landroid/view/View;)Lyf0/o;

    move-result-object v0

    new-instance v1, Lx50/b;

    invoke-direct {v1, p0, p2, p3}, Lx50/b;-><init>(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;)V

    new-instance v2, Lx50/c;

    invoke-direct {v2}, Lx50/c;-><init>()V

    invoke-virtual {v0, v1, v2}, Lyf0/o;->subscribe(Lfg0/f;Lfg0/f;)Lcg0/b;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcg0/a;->b(Lcg0/b;)Z

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->f:Landroid/widget/ImageButton;

    invoke-static {v0}, Luk/a;->a(Landroid/view/View;)Lyf0/o;

    move-result-object v0

    new-instance v1, Lx50/d;

    invoke-direct {v1, p0, p2, p3}, Lx50/d;-><init>(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;)V

    new-instance v2, Lx50/e;

    invoke-direct {v2}, Lx50/e;-><init>()V

    invoke-virtual {v0, v1, v2}, Lyf0/o;->subscribe(Lfg0/f;Lfg0/f;)Lcg0/b;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcg0/a;->b(Lcg0/b;)Z

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->g:Landroid/widget/ImageButton;

    invoke-static {v0}, Luk/a;->a(Landroid/view/View;)Lyf0/o;

    move-result-object v0

    new-instance v1, Lx50/f;

    invoke-direct {v1, p0, p2, p3}, Lx50/f;-><init>(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;)V

    new-instance v2, Lx50/g;

    invoke-direct {v2}, Lx50/g;-><init>()V

    invoke-virtual {v0, v1, v2}, Lyf0/o;->subscribe(Lfg0/f;Lfg0/f;)Lcg0/b;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcg0/a;->b(Lcg0/b;)Z
    
## YKit-BringBackPhoebe
    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->yellow:Landroid/widget/ImageButton;

    # Yellow button has been disabled, skip this
    if-eqz v0, :post_bringBackPhoebe

    invoke-static {v0}, Luk/a;->a(Landroid/view/View;)Lyf0/o;

    move-result-object v0

    new-instance v1, Ldev/maelstrom/ykit/PhoebeCallback;

    invoke-direct {v1, p0, p2, p3}, Ldev/maelstrom/ykit/PhoebeCallback;-><init>(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;)V

    new-instance v2, Lx50/j;

    invoke-direct {v2}, Lx50/j;-><init>()V

    invoke-virtual {v0, v1, v2}, Lyf0/o;->subscribe(Lfg0/f;Lfg0/f;)Lcg0/b;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcg0/a;->b(Lcg0/b;)Z
    :post_bringBackPhoebe
## /YKit-BringBackPhoebe

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->h:Landroid/widget/ImageButton;

    invoke-static {v0}, Luk/a;->a(Landroid/view/View;)Lyf0/o;

    move-result-object v0

    new-instance v1, Lx50/h;

    invoke-direct {v1, p0, p2, p3}, Lx50/h;-><init>(Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;Lu50/y2;Ls50/b;)V

    new-instance p2, Lx50/i;

    invoke-direct {p2}, Lx50/i;-><init>()V

    invoke-virtual {v0, v1, p2}, Lyf0/o;->subscribe(Lfg0/f;Lfg0/f;)Lcg0/b;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcg0/a;->b(Lcg0/b;)Z

    return-void
.end method

.method public G(Ljava/util/HashSet;)V
    .locals 1

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->i:Ljava/util/HashSet;

    invoke-virtual {v0, p1}, Ljava/util/AbstractCollection;->addAll(Ljava/util/Collection;)Z

    invoke-direct {p0}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->I()V

    return-void
.end method

.method public p()V
    .locals 1

    iget-object v0, p0, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->i:Ljava/util/HashSet;

    invoke-virtual {v0}, Ljava/util/HashSet;->clear()V

    invoke-direct {p0}, Lcom/tumblr/posts/postform/view/ColorOptionsToolBar;->I()V

    return-void
.end method
