.class Lcom/moji/cameraview/DisplayOrientationDetector$1;
.super Landroid/view/OrientationEventListener;
.source "DisplayOrientationDetector.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/cameraview/DisplayOrientationDetector;-><init>(Landroid/content/Context;)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/cameraview/DisplayOrientationDetector;

.field private b:I


# direct methods
.method constructor <init>(Lcom/moji/cameraview/DisplayOrientationDetector;Landroid/content/Context;)V
    .locals 0

    .line 48
    iput-object p1, p0, Lcom/moji/cameraview/DisplayOrientationDetector$1;->a:Lcom/moji/cameraview/DisplayOrientationDetector;

    invoke-direct {p0, p2}, Landroid/view/OrientationEventListener;-><init>(Landroid/content/Context;)V

    const/4 p1, -0x1

    .line 51
    iput p1, p0, Lcom/moji/cameraview/DisplayOrientationDetector$1;->b:I

    return-void
.end method


# virtual methods
.method public onOrientationChanged(I)V
    .locals 2

    const/4 v0, -0x1

    if-eq p1, v0, :cond_2

    .line 55
    iget-object p1, p0, Lcom/moji/cameraview/DisplayOrientationDetector$1;->a:Lcom/moji/cameraview/DisplayOrientationDetector;

    iget-object p1, p1, Lcom/moji/cameraview/DisplayOrientationDetector;->c:Landroid/view/Display;

    if-nez p1, :cond_0

    goto :goto_0

    .line 59
    :cond_0
    iget-object p1, p0, Lcom/moji/cameraview/DisplayOrientationDetector$1;->a:Lcom/moji/cameraview/DisplayOrientationDetector;

    iget-object p1, p1, Lcom/moji/cameraview/DisplayOrientationDetector;->c:Landroid/view/Display;

    invoke-virtual {p1}, Landroid/view/Display;->getRotation()I

    move-result p1

    .line 60
    iget v0, p0, Lcom/moji/cameraview/DisplayOrientationDetector$1;->b:I

    if-eq v0, p1, :cond_1

    .line 61
    iput p1, p0, Lcom/moji/cameraview/DisplayOrientationDetector$1;->b:I

    .line 62
    iget-object v0, p0, Lcom/moji/cameraview/DisplayOrientationDetector$1;->a:Lcom/moji/cameraview/DisplayOrientationDetector;

    sget-object v1, Lcom/moji/cameraview/DisplayOrientationDetector;->b:Landroid/util/SparseIntArray;

    invoke-virtual {v1, p1}, Landroid/util/SparseIntArray;->get(I)I

    move-result p1

    invoke-virtual {v0, p1}, Lcom/moji/cameraview/DisplayOrientationDetector;->b(I)V

    :cond_1
    return-void

    :cond_2
    :goto_0
    return-void
.end method
