VersionedGestureDetector.smali
.class public final Luk/co/senab/photoview/gestures/VersionedGestureDetector;
.super Ljava/lang/Object;
.source "VersionedGestureDetector.java"
# direct methods
.method public constructor <init>()V
.registers 1
.line 22
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static newInstance(Landroid/content/Context;Luk/co/senab/photoview/gestures/OnGestureListener;)Luk/co/senab/photoview/gestures/GestureDetector;
.registers 4
.line 26
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/4 v1, 0x5
if-ge v0, v1, :cond_b
.line 30
new-instance v0, Luk/co/senab/photoview/gestures/CupcakeGestureDetector;
invoke-direct {v0, p0}, Luk/co/senab/photoview/gestures/CupcakeGestureDetector;-><init>(Landroid/content/Context;)V
goto :goto_1a
:cond_b
const/16 v1, 0x8
if-ge v0, v1, :cond_15
.line 32
new-instance v0, Luk/co/senab/photoview/gestures/EclairGestureDetector;
invoke-direct {v0, p0}, Luk/co/senab/photoview/gestures/EclairGestureDetector;-><init>(Landroid/content/Context;)V
goto :goto_1a
.line 34
:cond_15
new-instance v0, Luk/co/senab/photoview/gestures/FroyoGestureDetector;
invoke-direct {v0, p0}, Luk/co/senab/photoview/gestures/FroyoGestureDetector;-><init>(Landroid/content/Context;)V
.line 37
:goto_1a
invoke-interface {v0, p1}, Luk/co/senab/photoview/gestures/GestureDetector;->setOnGestureListener(Luk/co/senab/photoview/gestures/OnGestureListener;)V
return-object v0
.end method