apkfuckery/com.discord/smali_classes2/com/google/android/cameraview/DisplayOrientationDetector$1.smali
2019-07-24 13:27:29 +02:00

83 lines
2.7 KiB
Smali

.class Lcom/google/android/cameraview/DisplayOrientationDetector$1;
.super Landroid/view/OrientationEventListener;
.source "DisplayOrientationDetector.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/android/cameraview/DisplayOrientationDetector;-><init>(Landroid/content/Context;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field private mLastKnownRotation:I
.field final synthetic this$0:Lcom/google/android/cameraview/DisplayOrientationDetector;
# direct methods
.method constructor <init>(Lcom/google/android/cameraview/DisplayOrientationDetector;Landroid/content/Context;)V
.locals 0
iput-object p1, p0, Lcom/google/android/cameraview/DisplayOrientationDetector$1;->this$0:Lcom/google/android/cameraview/DisplayOrientationDetector;
invoke-direct {p0, p2}, Landroid/view/OrientationEventListener;-><init>(Landroid/content/Context;)V
const/4 p1, -0x1
iput p1, p0, Lcom/google/android/cameraview/DisplayOrientationDetector$1;->mLastKnownRotation:I
return-void
.end method
# virtual methods
.method public onOrientationChanged(I)V
.locals 2
const/4 v0, -0x1
if-eq p1, v0, :cond_1
iget-object p1, p0, Lcom/google/android/cameraview/DisplayOrientationDetector$1;->this$0:Lcom/google/android/cameraview/DisplayOrientationDetector;
iget-object p1, p1, Lcom/google/android/cameraview/DisplayOrientationDetector;->mDisplay:Landroid/view/Display;
if-nez p1, :cond_0
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/google/android/cameraview/DisplayOrientationDetector$1;->this$0:Lcom/google/android/cameraview/DisplayOrientationDetector;
iget-object p1, p1, Lcom/google/android/cameraview/DisplayOrientationDetector;->mDisplay:Landroid/view/Display;
invoke-virtual {p1}, Landroid/view/Display;->getRotation()I
move-result p1
iget v0, p0, Lcom/google/android/cameraview/DisplayOrientationDetector$1;->mLastKnownRotation:I
if-eq v0, p1, :cond_1
iput p1, p0, Lcom/google/android/cameraview/DisplayOrientationDetector$1;->mLastKnownRotation:I
iget-object v0, p0, Lcom/google/android/cameraview/DisplayOrientationDetector$1;->this$0:Lcom/google/android/cameraview/DisplayOrientationDetector;
sget-object v1, Lcom/google/android/cameraview/DisplayOrientationDetector;->DISPLAY_ORIENTATIONS:Landroid/util/SparseIntArray;
invoke-virtual {v1, p1}, Landroid/util/SparseIntArray;->get(I)I
move-result p1
invoke-virtual {v0, p1}, Lcom/google/android/cameraview/DisplayOrientationDetector;->dispatchOnDisplayOrientationChanged(I)V
:cond_1
:goto_0
return-void
.end method