.class Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView$GestureListener;
.super Landroid/view/GestureDetector$SimpleOnGestureListener;
.source "Forecast15DaysCurveView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "GestureListener"
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;


# direct methods
.method private constructor <init>(Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;)V
    .locals 0

    .line 919
    iput-object p1, p0, Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView$GestureListener;->a:Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;

    invoke-direct {p0}, Landroid/view/GestureDetector$SimpleOnGestureListener;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView$1;)V
    .locals 0

    .line 919
    invoke-direct {p0, p1}, Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView$GestureListener;-><init>(Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;)V

    return-void
.end method


# virtual methods
.method public onSingleTapConfirmed(Landroid/view/MotionEvent;)Z
    .locals 2

    .line 922
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    .line 923
    iget-object v1, p0, Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView$GestureListener;->a:Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;->a(Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;)I

    move-result v1

    int-to-float v1, v1

    div-float/2addr v0, v1

    float-to-double v0, v0

    invoke-static {v0, v1}, Ljava/lang/Math;->floor(D)D

    move-result-wide v0

    double-to-int v0, v0

    .line 924
    iget-object v1, p0, Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView$GestureListener;->a:Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;->b(Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;)Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView$Day15ViewListener;

    move-result-object v1

    if-eqz v1, :cond_0

    if-ltz v0, :cond_0

    iget-object v1, p0, Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView$GestureListener;->a:Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;->c(Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_0

    .line 925
    iget-object v1, p0, Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView$GestureListener;->a:Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;->b(Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView;)Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView$Day15ViewListener;

    move-result-object v1

    invoke-interface {v1, v0}, Lcom/moji/mjweather/weather/view/Forecast15DaysCurveView$Day15ViewListener;->a(I)V

    .line 927
    :cond_0
    invoke-super {p0, p1}, Landroid/view/GestureDetector$SimpleOnGestureListener;->onSingleTapConfirmed(Landroid/view/MotionEvent;)Z

    move-result p1

    return p1
.end method
