Compat.smali
.class public Luk/co/senab/photoview/Compat;
.super Ljava/lang/Object;
.source "Compat.java"
# static fields
.field private static final SIXTY_FPS_INTERVAL:I = 0x10
# direct methods
.method public constructor <init>()V
.registers 1
.line 25
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getPointerIndex(I)I
.registers 3
.line 43
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0xb
if-lt v0, v1, :cond_b
.line 44
invoke-static {p0}, Luk/co/senab/photoview/Compat;->getPointerIndexHoneyComb(I)I
move-result p0
return p0
.line 46
:cond_b
invoke-static {p0}, Luk/co/senab/photoview/Compat;->getPointerIndexEclair(I)I
move-result p0
return p0
.end method
.method private static getPointerIndexEclair(I)I
.registers 2
const v0, 0xff00
and-int/2addr p0, v0
shr-int/lit8 p0, p0, 0x8
return p0
.end method
.method private static getPointerIndexHoneyComb(I)I
.registers 2
const v0, 0xff00
and-int/2addr p0, v0
shr-int/lit8 p0, p0, 0x8
return p0
.end method
.method public static postOnAnimation(Landroid/view/View;Ljava/lang/Runnable;)V
.registers 4
.line 30
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x10
if-lt v0, v1, :cond_a
.line 31
invoke-static {p0, p1}, Luk/co/senab/photoview/Compat;->postOnAnimationJellyBean(Landroid/view/View;Ljava/lang/Runnable;)V
goto :goto_f
:cond_a
const-wide/16 v0, 0x10
.line 33
invoke-virtual {p0, p1, v0, v1}, Landroid/view/View;->postDelayed(Ljava/lang/Runnable;J)Z
:goto_f
return-void
.end method
.method private static postOnAnimationJellyBean(Landroid/view/View;Ljava/lang/Runnable;)V
.registers 2
.line 39
invoke-virtual {p0, p1}, Landroid/view/View;->postOnAnimation(Ljava/lang/Runnable;)V
return-void
.end method