今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
3.5 KiB

.class Lcom/viatech/gallery/OrientationController$1;
.super Landroid/view/OrientationEventListener;
.source "OrientationController.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/viatech/gallery/OrientationController;->onCreate(Landroid/app/Activity;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/viatech/gallery/OrientationController;
.field final synthetic val$activity:Landroid/app/Activity;
# direct methods
.method constructor <init>(Lcom/viatech/gallery/OrientationController;Landroid/content/Context;Landroid/app/Activity;)V
.locals 0
.prologue
.line 22
iput-object p1, p0, Lcom/viatech/gallery/OrientationController$1;->this$0:Lcom/viatech/gallery/OrientationController;
iput-object p3, p0, Lcom/viatech/gallery/OrientationController$1;->val$activity:Landroid/app/Activity;
invoke-direct {p0, p2}, Landroid/view/OrientationEventListener;-><init>(Landroid/content/Context;)V
return-void
.end method
# virtual methods
.method public onOrientationChanged(I)V
.locals 5
.prologue
const/16 v4, 0x13b
const/16 v3, 0xe1
const/16 v2, 0x87
const/16 v0, 0x2d
const/16 v1, 0x9
.line 25
if-gez p1, :cond_1
.line 42
:cond_0
:goto_0
return-void
.line 28
:cond_1
if-gt p1, v4, :cond_2
if-ge p1, v0, :cond_4
.line 29
:cond_2
invoke-static {}, Lcom/viatech/Config;->a()Lcom/viatech/Config;
move-result-object v0
iget-boolean v0, v0, Lcom/viatech/Config;->k:Z
if-eqz v0, :cond_3
.line 30
iget-object v0, p0, Lcom/viatech/gallery/OrientationController$1;->val$activity:Landroid/app/Activity;
invoke-virtual {v0, v1}, Landroid/app/Activity;->setRequestedOrientation(I)V
goto :goto_0
.line 32
:cond_3
iget-object v0, p0, Lcom/viatech/gallery/OrientationController$1;->val$activity:Landroid/app/Activity;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Landroid/app/Activity;->setRequestedOrientation(I)V
goto :goto_0
.line 33
:cond_4
if-ge p1, v3, :cond_6
if-le p1, v2, :cond_6
.line 34
invoke-static {}, Lcom/viatech/Config;->a()Lcom/viatech/Config;
move-result-object v0
iget-boolean v0, v0, Lcom/viatech/Config;->k:Z
if-eqz v0, :cond_5
.line 35
iget-object v0, p0, Lcom/viatech/gallery/OrientationController$1;->val$activity:Landroid/app/Activity;
invoke-virtual {v0, v1}, Landroid/app/Activity;->setRequestedOrientation(I)V
goto :goto_0
.line 37
:cond_5
iget-object v0, p0, Lcom/viatech/gallery/OrientationController$1;->val$activity:Landroid/app/Activity;
invoke-virtual {v0, v1}, Landroid/app/Activity;->setRequestedOrientation(I)V
goto :goto_0
.line 38
:cond_6
if-ge p1, v4, :cond_7
if-le p1, v3, :cond_7
.line 39
iget-object v0, p0, Lcom/viatech/gallery/OrientationController$1;->val$activity:Landroid/app/Activity;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/app/Activity;->setRequestedOrientation(I)V
goto :goto_0
.line 40
:cond_7
if-le p1, v0, :cond_0
if-ge p1, v2, :cond_0
.line 41
iget-object v0, p0, Lcom/viatech/gallery/OrientationController$1;->val$activity:Landroid/app/Activity;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/app/Activity;->setRequestedOrientation(I)V
goto :goto_0
.end method