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.
116 lines
2.9 KiB
116 lines
2.9 KiB
.class public Lcom/viatech/gallery/OrientationController; |
|
.super Ljava/lang/Object; |
|
.source "OrientationController.java" |
|
|
|
|
|
# static fields |
|
.field private static final LD:I = 0x13b |
|
|
|
.field private static final LU:I = 0xe1 |
|
|
|
.field private static final RD:I = 0x2d |
|
|
|
.field private static final RU:I = 0x87 |
|
|
|
|
|
# instance fields |
|
.field private orientationEventListener:Landroid/view/OrientationEventListener; |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 13 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public enterVR()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 48 |
|
iget-object v0, p0, Lcom/viatech/gallery/OrientationController;->orientationEventListener:Landroid/view/OrientationEventListener; |
|
|
|
invoke-virtual {v0}, Landroid/view/OrientationEventListener;->disable()V |
|
|
|
.line 49 |
|
return-void |
|
.end method |
|
|
|
.method public exitVR()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 52 |
|
iget-object v0, p0, Lcom/viatech/gallery/OrientationController;->orientationEventListener:Landroid/view/OrientationEventListener; |
|
|
|
invoke-virtual {v0}, Landroid/view/OrientationEventListener;->enable()V |
|
|
|
.line 53 |
|
return-void |
|
.end method |
|
|
|
.method public onCreate(Landroid/app/Activity;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 22 |
|
new-instance v0, Lcom/viatech/gallery/OrientationController$1; |
|
|
|
invoke-direct {v0, p0, p1, p1}, Lcom/viatech/gallery/OrientationController$1;-><init>(Lcom/viatech/gallery/OrientationController;Landroid/content/Context;Landroid/app/Activity;)V |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/OrientationController;->orientationEventListener:Landroid/view/OrientationEventListener; |
|
|
|
.line 44 |
|
iget-object v0, p0, Lcom/viatech/gallery/OrientationController;->orientationEventListener:Landroid/view/OrientationEventListener; |
|
|
|
invoke-virtual {v0}, Landroid/view/OrientationEventListener;->enable()V |
|
|
|
.line 45 |
|
return-void |
|
.end method |
|
|
|
.method public onDestroy()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 56 |
|
iget-object v0, p0, Lcom/viatech/gallery/OrientationController;->orientationEventListener:Landroid/view/OrientationEventListener; |
|
|
|
invoke-virtual {v0}, Landroid/view/OrientationEventListener;->disable()V |
|
|
|
.line 57 |
|
return-void |
|
.end method |
|
|
|
.method public onPause()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/gallery/OrientationController;->orientationEventListener:Landroid/view/OrientationEventListener; |
|
|
|
invoke-virtual {v0}, Landroid/view/OrientationEventListener;->disable()V |
|
|
|
.line 65 |
|
return-void |
|
.end method |
|
|
|
.method public onResume()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 60 |
|
iget-object v0, p0, Lcom/viatech/gallery/OrientationController;->orientationEventListener:Landroid/view/OrientationEventListener; |
|
|
|
invoke-virtual {v0}, Landroid/view/OrientationEventListener;->enable()V |
|
|
|
.line 61 |
|
return-void |
|
.end method
|
|
|