b$b.smali

.class public Lf7/b$b;
.super Ljava/lang/Object;
.source "CameraStateOrchestrator.java"

# interfaces
.implements Ljava/util/concurrent/Callable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lf7/b;->a(Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;ZLjava/util/concurrent/Callable;)Lcom/google/android/gms/tasks/Task;
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/concurrent/Callable<",
        "Lcom/google/android/gms/tasks/Task<",
        "TT;>;>;"
    }
.end annotation


# instance fields
.field public final synthetic a:Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;

.field public final synthetic b:Ljava/lang/String;

.field public final synthetic c:Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;

.field public final synthetic d:Ljava/util/concurrent/Callable;

.field public final synthetic e:Z

.field public final synthetic f:Lf7/b;


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

    return-void
.end method

.method public constructor <init>(Lf7/b;Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;Ljava/lang/String;Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;Ljava/util/concurrent/Callable;Z)V
    .registers 7

    iput-object p1, p0, Lf7/b$b;->f:Lf7/b;

    iput-object p2, p0, Lf7/b$b;->a:Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;

    iput-object p3, p0, Lf7/b$b;->b:Ljava/lang/String;

    iput-object p4, p0, Lf7/b$b;->c:Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;

    iput-object p5, p0, Lf7/b$b;->d:Ljava/util/concurrent/Callable;

    iput-boolean p6, p0, Lf7/b$b;->e:Z

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

    return-void
.end method


# virtual methods
.method public call()Lcom/google/android/gms/tasks/Task;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/google/android/gms/tasks/Task<",
            "TT;>;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    iget-object v0, p0, Lf7/b$b;->f:Lf7/b;

    invoke-virtual {v0}, Lf7/b;->c()Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;

    move-result-object v0

    iget-object v1, p0, Lf7/b$b;->a:Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;

    if-eq v0, v1, :cond_42

    sget-object v0, Lf7/a;->e:Lw6/c;

    const/4 v1, 0x7

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    iget-object v3, p0, Lf7/b$b;->b:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x1

    const-string v3, "- State mismatch, aborting. current:"

    aput-object v3, v1, v2

    const/4 v2, 0x2

    iget-object v3, p0, Lf7/b$b;->f:Lf7/b;

    invoke-virtual {v3}, Lf7/b;->c()Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x3

    const-string v3, "from:"

    aput-object v3, v1, v2

    const/4 v2, 0x4

    iget-object v3, p0, Lf7/b$b;->a:Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;

    aput-object v3, v1, v2

    const/4 v2, 0x5

    const-string v3, "to:"

    aput-object v3, v1, v2

    const/4 v2, 0x6

    iget-object v3, p0, Lf7/b$b;->c:Lcom/otaliastudios/cameraview/engine/orchestrator/CameraState;

    aput-object v3, v1, v2

    invoke-virtual {v0, v1}, Lw6/c;->d([Ljava/lang/Object;)Ljava/lang/String;

    invoke-static {}, Lcom/google/android/gms/tasks/Tasks;->forCanceled()Lcom/google/android/gms/tasks/Task;

    move-result-object v0

    return-object v0

    :cond_42
    iget-object v0, p0, Lf7/b$b;->f:Lf7/b;

    iget-object v0, v0, Lf7/a;->a:Lf7/a$e;

    iget-object v1, p0, Lf7/b$b;->b:Ljava/lang/String;

    invoke-interface {v0, v1}, Lf7/a$e;->a(Ljava/lang/String;)Lk7/h;

    move-result-object v0

    invoke-virtual {v0}, Lk7/h;->b()Ljava/util/concurrent/Executor;

    move-result-object v0

    iget-object v1, p0, Lf7/b$b;->d:Ljava/util/concurrent/Callable;

    invoke-interface {v1}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/google/android/gms/tasks/Task;

    new-instance v2, Lf7/b$b$a;

    invoke-direct {v2, p0}, Lf7/b$b$a;-><init>(Lf7/b$b;)V

    invoke-virtual {v1, v0, v2}, Lcom/google/android/gms/tasks/Task;->continueWithTask(Ljava/util/concurrent/Executor;Lcom/google/android/gms/tasks/Continuation;)Lcom/google/android/gms/tasks/Task;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic call()Ljava/lang/Object;
    .registers 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    invoke-virtual {p0}, Lf7/b$b;->call()Lcom/google/android/gms/tasks/Task;

    move-result-object v0

    return-object v0
.end method