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