CameraModeView$13.smali

.class final Lcom/imo/android/imoim/views/CameraModeView$13;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/imo/android/imoim/views/CameraModeView;->g()V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/views/CameraModeView;

.field private b:Z

.field private c:Ljava/lang/Runnable;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/views/CameraModeView;)V
    .registers 2

    .line 325
    iput-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

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

    const/4 p1, 0x1

    .line 326
    iput-boolean p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->b:Z

    .line 327
    new-instance p1, Lcom/imo/android/imoim/views/CameraModeView$13$1;

    invoke-direct {p1, p0}, Lcom/imo/android/imoim/views/CameraModeView$13$1;-><init>(Lcom/imo/android/imoim/views/CameraModeView$13;)V

    iput-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->c:Ljava/lang/Runnable;

    return-void
.end method

.method static synthetic a(Lcom/imo/android/imoim/views/CameraModeView$13;)Z
    .registers 1

    .line 325
    iget-boolean p0, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->b:Z

    return p0
.end method


# virtual methods
.method public final onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .registers 7

    .line 345
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result p1

    and-int/lit16 p1, p1, 0xff

    const/4 p2, 0x0

    const/4 v0, 0x1

    if-eqz p1, :cond_55

    if-eq p1, v0, :cond_e

    goto/16 :goto_b7

    .line 367
    :cond_e
    iget-boolean p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->b:Z

    if-nez p1, :cond_b7

    .line 369
    iput-boolean v0, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->b:Z

    .line 370
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    iget-object p1, p1, Lcom/imo/android/imoim/views/CameraModeView;->a:Landroid/os/Handler;

    iget-object v1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->c:Ljava/lang/Runnable;

    invoke-virtual {p1, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 371
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    iget-object p1, p1, Lcom/imo/android/imoim/views/CameraModeView;->g:Landroid/view/View;

    invoke-static {p1}, Lcom/imo/android/imoim/util/en;->b(Landroid/view/View;)V

    .line 372
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    invoke-static {p1}, Lcom/imo/android/imoim/views/CameraModeView;->e(Lcom/imo/android/imoim/views/CameraModeView;)Ljava/util/concurrent/atomic/AtomicBoolean;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z

    move-result p1

    if-eqz p1, :cond_47

    .line 373
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    iget-object p1, p1, Lcom/imo/android/imoim/views/CameraModeView;->b:Lcom/imo/android/imoim/views/CameraModeView$a;

    if-eqz p1, :cond_3d

    .line 374
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    iget-object p1, p1, Lcom/imo/android/imoim/views/CameraModeView;->b:Lcom/imo/android/imoim/views/CameraModeView$a;

    invoke-interface {p1}, Lcom/imo/android/imoim/views/CameraModeView$a;->c()V

    .line 375
    :cond_3d
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    invoke-static {p1}, Lcom/imo/android/imoim/views/CameraModeView;->e(Lcom/imo/android/imoim/views/CameraModeView;)Ljava/util/concurrent/atomic/AtomicBoolean;

    move-result-object p1

    invoke-virtual {p1, p2}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    goto :goto_b7

    .line 377
    :cond_47
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    iget-object p1, p1, Lcom/imo/android/imoim/views/CameraModeView;->b:Lcom/imo/android/imoim/views/CameraModeView$a;

    if-eqz p1, :cond_b7

    .line 378
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    iget-object p1, p1, Lcom/imo/android/imoim/views/CameraModeView;->b:Lcom/imo/android/imoim/views/CameraModeView$a;

    invoke-interface {p1}, Lcom/imo/android/imoim/views/CameraModeView$a;->a()V

    goto :goto_b7

    .line 347
    :cond_55
    sget-object p1, Lcom/imo/android/imoim/world/stats/reporter/publish/c;->b:Lcom/imo/android/imoim/world/stats/reporter/publish/c;

    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    invoke-static {p1}, Lcom/imo/android/imoim/views/CameraModeView;->b(Lcom/imo/android/imoim/views/CameraModeView;)Lcom/imo/android/imoim/camera/CameraEditView$c;

    move-result-object p1

    invoke-static {p1}, Lcom/imo/android/imoim/world/stats/reporter/publish/c;->a(Lcom/imo/android/imoim/camera/CameraEditView$c;)Z

    move-result p1

    if-eqz p1, :cond_6a

    .line 348
    sget-object p1, Lcom/imo/android/imoim/world/stats/reporter/publish/c;->b:Lcom/imo/android/imoim/world/stats/reporter/publish/c;

    const-string p1, "live"

    invoke-static {p1}, Lcom/imo/android/imoim/world/stats/reporter/publish/c;->a(Ljava/lang/String;)V

    .line 350
    :cond_6a
    iput-boolean p2, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->b:Z

    .line 352
    sget-object p1, Lcom/imo/android/imoim/world/stats/reporter/publish/b;->a:Lcom/imo/android/imoim/world/stats/reporter/publish/b;

    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    invoke-static {p1}, Lcom/imo/android/imoim/views/CameraModeView;->b(Lcom/imo/android/imoim/views/CameraModeView;)Lcom/imo/android/imoim/camera/CameraEditView$c;

    move-result-object p1

    invoke-static {p1}, Lcom/imo/android/imoim/world/stats/reporter/publish/b;->a(Lcom/imo/android/imoim/camera/CameraEditView$c;)Z

    move-result p1

    const/16 v1, 0x66

    if-eqz p1, :cond_81

    .line 353
    sget-object p1, Lcom/imo/android/imoim/world/stats/reporter/publish/b;->a:Lcom/imo/android/imoim/world/stats/reporter/publish/b;

    invoke-static {v1}, Lcom/imo/android/imoim/world/stats/reporter/publish/b;->c(I)V

    .line 355
    :cond_81
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    invoke-static {p1}, Lcom/imo/android/imoim/views/CameraModeView;->b(Lcom/imo/android/imoim/views/CameraModeView;)Lcom/imo/android/imoim/camera/CameraEditView$c;

    move-result-object p1

    sget-object v2, Lcom/imo/android/imoim/camera/CameraEditView$c;->FEED_VIDEO:Lcom/imo/android/imoim/camera/CameraEditView$c;

    if-ne p1, v2, :cond_a0

    .line 356
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->c:Ljava/lang/Runnable;

    invoke-interface {p1}, Ljava/lang/Runnable;->run()V

    .line 357
    sget-object p1, Lcom/imo/android/imoim/feeds/e/o;->a:Lcom/imo/android/imoim/feeds/e/o;

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/e/o;->b(I)V

    .line 358
    sget-object p1, Lcom/imo/android/imoim/feeds/e/o;->a:Lcom/imo/android/imoim/feeds/e/o;

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/e/o;->c(I)V

    .line 359
    sget-object p1, Lcom/imo/android/imoim/feeds/e/o;->a:Lcom/imo/android/imoim/feeds/e/o;

    invoke-static {v1}, Lcom/imo/android/imoim/feeds/e/o;->g(I)V

    goto :goto_ab

    .line 361
    :cond_a0
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    iget-object p1, p1, Lcom/imo/android/imoim/views/CameraModeView;->a:Landroid/os/Handler;

    iget-object v1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->c:Ljava/lang/Runnable;

    const-wide/16 v2, 0x12c

    invoke-virtual {p1, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 363
    :goto_ab
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    invoke-virtual {p1, p2}, Lcom/imo/android/imoim/views/CameraModeView;->a(Z)V

    .line 364
    iget-object p1, p0, Lcom/imo/android/imoim/views/CameraModeView$13;->a:Lcom/imo/android/imoim/views/CameraModeView;

    iget-object p1, p1, Lcom/imo/android/imoim/views/CameraModeView;->g:Landroid/view/View;

    invoke-static {p1}, Lcom/imo/android/imoim/util/en;->a(Landroid/view/View;)V

    :cond_b7
    :goto_b7
    return v0
.end method