130 lines
4.1 KiB
Smali
130 lines
4.1 KiB
Smali
|
.class public abstract Lcom/camerakit/c;
|
||
|
.super Landroid/widget/FrameLayout;
|
||
|
.source "GestureLayout.java"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private pR:Landroid/view/ScaleGestureDetector;
|
||
|
|
||
|
.field private pS:Landroid/view/GestureDetector;
|
||
|
|
||
|
.field private pT:Landroid/view/GestureDetector$SimpleOnGestureListener;
|
||
|
|
||
|
.field private pU:Landroid/view/ScaleGestureDetector$OnScaleGestureListener;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Landroid/content/Context;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
||
|
|
||
|
new-instance p1, Lcom/camerakit/c$1;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/camerakit/c$1;-><init>(Lcom/camerakit/c;)V
|
||
|
|
||
|
iput-object p1, p0, Lcom/camerakit/c;->pT:Landroid/view/GestureDetector$SimpleOnGestureListener;
|
||
|
|
||
|
new-instance p1, Lcom/camerakit/c$2;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/camerakit/c$2;-><init>(Lcom/camerakit/c;)V
|
||
|
|
||
|
iput-object p1, p0, Lcom/camerakit/c;->pU:Landroid/view/ScaleGestureDetector$OnScaleGestureListener;
|
||
|
|
||
|
invoke-direct {p0}, Lcom/camerakit/c;->initialize()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||
|
|
||
|
new-instance p1, Lcom/camerakit/c$1;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/camerakit/c$1;-><init>(Lcom/camerakit/c;)V
|
||
|
|
||
|
iput-object p1, p0, Lcom/camerakit/c;->pT:Landroid/view/GestureDetector$SimpleOnGestureListener;
|
||
|
|
||
|
new-instance p1, Lcom/camerakit/c$2;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/camerakit/c$2;-><init>(Lcom/camerakit/c;)V
|
||
|
|
||
|
iput-object p1, p0, Lcom/camerakit/c;->pU:Landroid/view/ScaleGestureDetector$OnScaleGestureListener;
|
||
|
|
||
|
invoke-direct {p0}, Lcom/camerakit/c;->initialize()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||
|
|
||
|
new-instance p1, Lcom/camerakit/c$1;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/camerakit/c$1;-><init>(Lcom/camerakit/c;)V
|
||
|
|
||
|
iput-object p1, p0, Lcom/camerakit/c;->pT:Landroid/view/GestureDetector$SimpleOnGestureListener;
|
||
|
|
||
|
new-instance p1, Lcom/camerakit/c$2;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/camerakit/c$2;-><init>(Lcom/camerakit/c;)V
|
||
|
|
||
|
iput-object p1, p0, Lcom/camerakit/c;->pU:Landroid/view/ScaleGestureDetector$OnScaleGestureListener;
|
||
|
|
||
|
invoke-direct {p0}, Lcom/camerakit/c;->initialize()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private initialize()V
|
||
|
.locals 3
|
||
|
|
||
|
new-instance v0, Landroid/view/ScaleGestureDetector;
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/camerakit/c;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, p0, Lcom/camerakit/c;->pU:Landroid/view/ScaleGestureDetector$OnScaleGestureListener;
|
||
|
|
||
|
invoke-direct {v0, v1, v2}, Landroid/view/ScaleGestureDetector;-><init>(Landroid/content/Context;Landroid/view/ScaleGestureDetector$OnScaleGestureListener;)V
|
||
|
|
||
|
iput-object v0, p0, Lcom/camerakit/c;->pR:Landroid/view/ScaleGestureDetector;
|
||
|
|
||
|
new-instance v0, Landroid/view/GestureDetector;
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/camerakit/c;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, p0, Lcom/camerakit/c;->pT:Landroid/view/GestureDetector$SimpleOnGestureListener;
|
||
|
|
||
|
invoke-direct {v0, v1, v2}, Landroid/view/GestureDetector;-><init>(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;)V
|
||
|
|
||
|
iput-object v0, p0, Lcom/camerakit/c;->pS:Landroid/view/GestureDetector;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lcom/camerakit/c;->pS:Landroid/view/GestureDetector;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
||
|
|
||
|
iget-object v0, p0, Lcom/camerakit/c;->pR:Landroid/view/ScaleGestureDetector;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/view/ScaleGestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
||
|
|
||
|
const/4 p1, 0x1
|
||
|
|
||
|
return p1
|
||
|
.end method
|