SecretMediaViewer$PhotoBackgroundDrawable.smali
.class Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
.super Landroid/graphics/drawable/ColorDrawable;
.source "SecretMediaViewer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lim/tpelyyftgw/ui/SecretMediaViewer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "PhotoBackgroundDrawable"
.end annotation
# instance fields
.field private drawRunnable:Ljava/lang/Runnable;
.field private frame:I
.field final synthetic this$0:Lim/tpelyyftgw/ui/SecretMediaViewer;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lim/tpelyyftgw/ui/SecretMediaViewer;I)V
.registers 3
.param p2, "color" # I
.line 265
iput-object p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->this$0:Lim/tpelyyftgw/ui/SecretMediaViewer;
.line 266
invoke-direct {p0, p2}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V
.line 267
return-void
.end method
.method static synthetic access$2502(Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;I)I
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
.param p1, "x1" # I
.line 260
iput p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->frame:I
return p1
.end method
.method static synthetic access$2602(Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;Ljava/lang/Runnable;)Ljava/lang/Runnable;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;
.param p1, "x1" # Ljava/lang/Runnable;
.line 260
iput-object p1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->drawRunnable:Ljava/lang/Runnable;
return-object p1
.end method
# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
.registers 4
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 280
invoke-super {p0, p1}, Landroid/graphics/drawable/ColorDrawable;->draw(Landroid/graphics/Canvas;)V
.line 281
invoke-virtual {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->getAlpha()I
move-result v0
if-eqz v0, :cond_22
.line 282
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->frame:I
const/4 v1, 0x2
if-ne v0, v1, :cond_19
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->drawRunnable:Ljava/lang/Runnable;
if-eqz v0, :cond_19
.line 283
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
.line 284
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->drawRunnable:Ljava/lang/Runnable;
goto :goto_1c
.line 286
:cond_19
invoke-virtual {p0}, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->invalidateSelf()V
.line 288
:goto_1c
iget v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->frame:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->frame:I
.line 290
:cond_22
return-void
.end method
.method public setAlpha(I)V
.registers 4
.param p1, "alpha" # I
.line 272
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->this$0:Lim/tpelyyftgw/ui/SecretMediaViewer;
invoke-static {v0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->access$700(Lim/tpelyyftgw/ui/SecretMediaViewer;)Landroid/app/Activity;
move-result-object v0
instance-of v0, v0, Lim/tpelyyftgw/ui/LaunchActivity;
if-eqz v0, :cond_27
.line 273
iget-object v0, p0, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->this$0:Lim/tpelyyftgw/ui/SecretMediaViewer;
invoke-static {v0}, Lim/tpelyyftgw/ui/SecretMediaViewer;->access$700(Lim/tpelyyftgw/ui/SecretMediaViewer;)Landroid/app/Activity;
move-result-object v0
check-cast v0, Lim/tpelyyftgw/ui/LaunchActivity;
iget-object v0, v0, Lim/tpelyyftgw/ui/LaunchActivity;->drawerLayoutContainer:Lim/tpelyyftgw/ui/actionbar/DrawerLayoutContainer;
iget-object v1, p0, Lim/tpelyyftgw/ui/SecretMediaViewer$PhotoBackgroundDrawable;->this$0:Lim/tpelyyftgw/ui/SecretMediaViewer;
invoke-static {v1}, Lim/tpelyyftgw/ui/SecretMediaViewer;->access$800(Lim/tpelyyftgw/ui/SecretMediaViewer;)Z
move-result v1
if-eqz v1, :cond_23
const/16 v1, 0xff
if-eq p1, v1, :cond_21
goto :goto_23
:cond_21
const/4 v1, 0x0
goto :goto_24
:cond_23
:goto_23
const/4 v1, 0x1
:goto_24
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/DrawerLayoutContainer;->setAllowDrawContent(Z)V
.line 275
:cond_27
invoke-super {p0, p1}, Landroid/graphics/drawable/ColorDrawable;->setAlpha(I)V
.line 276
return-void
.end method