232 lines
6.0 KiB
Smali
232 lines
6.0 KiB
Smali
.class public Lcom/moji/weathersence/SceneClickFrameLayout;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "SceneClickFrameLayout.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnTouchListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/weathersence/SceneClickFrameLayout$EasterEggHandler;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Lcom/moji/weathersence/SceneClickFrameLayout$EasterEggHandler;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroid/support/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 24
|
|
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 25
|
|
invoke-direct {p0}, Lcom/moji/weathersence/SceneClickFrameLayout;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroid/support/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 30
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 31
|
|
invoke-direct {p0}, Lcom/moji/weathersence/SceneClickFrameLayout;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroid/support/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 35
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 36
|
|
invoke-direct {p0}, Lcom/moji/weathersence/SceneClickFrameLayout;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a()V
|
|
.locals 0
|
|
|
|
.line 40
|
|
invoke-virtual {p0, p0}, Lcom/moji/weathersence/SceneClickFrameLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Lcom/moji/weathersence/sceneegg/EggData;)V
|
|
.locals 4
|
|
|
|
.line 75
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->WEATHER_BACKGROUND_EGG_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
iget-wide v2, p1, Lcom/moji/weathersence/sceneegg/EggData;->a:J
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 77
|
|
iget-object v0, p0, Lcom/moji/weathersence/SceneClickFrameLayout;->a:Lcom/moji/weathersence/SceneClickFrameLayout$EasterEggHandler;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 78
|
|
iget-object v0, p0, Lcom/moji/weathersence/SceneClickFrameLayout;->a:Lcom/moji/weathersence/SceneClickFrameLayout$EasterEggHandler;
|
|
|
|
iget v1, p1, Lcom/moji/weathersence/sceneegg/EggData;->c:I
|
|
|
|
iget v2, p1, Lcom/moji/weathersence/sceneegg/EggData;->d:I
|
|
|
|
iget-object p1, p1, Lcom/moji/weathersence/sceneegg/EggData;->e:Ljava/lang/String;
|
|
|
|
invoke-interface {v0, v1, v2, p1}, Lcom/moji/weathersence/SceneClickFrameLayout$EasterEggHandler;->a(IILjava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(FFZ)Z
|
|
.locals 2
|
|
|
|
.line 61
|
|
invoke-static {}, Lcom/moji/weathersence/MJSceneManager;->a()Lcom/moji/weathersence/MJSceneManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/moji/weathersence/MJSceneManager;->a(FF)Lcom/moji/weathersence/sceneegg/EggData;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 64
|
|
invoke-direct {p0, p1}, Lcom/moji/weathersence/SceneClickFrameLayout;->a(Lcom/moji/weathersence/sceneegg/EggData;)V
|
|
|
|
.line 65
|
|
invoke-static {}, Lcom/moji/weathersence/MJSceneManager;->a()Lcom/moji/weathersence/MJSceneManager;
|
|
|
|
move-result-object p2
|
|
|
|
iget-wide v0, p1, Lcom/moji/weathersence/sceneegg/EggData;->a:J
|
|
|
|
invoke-virtual {p2, v0, v1}, Lcom/moji/weathersence/MJSceneManager;->a(J)V
|
|
|
|
.line 67
|
|
:cond_0
|
|
iget-boolean p1, p1, Lcom/moji/weathersence/sceneegg/EggData;->b:Z
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
|
|
.locals 2
|
|
|
|
.line 45
|
|
invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F
|
|
|
|
move-result p1
|
|
|
|
.line 46
|
|
invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawY()F
|
|
|
|
move-result v0
|
|
|
|
.line 47
|
|
invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result p2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
packed-switch p2, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_0
|
|
const/4 p2, 0x1
|
|
|
|
.line 51
|
|
invoke-direct {p0, p1, v0, p2}, Lcom/moji/weathersence/SceneClickFrameLayout;->a(FFZ)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
return p2
|
|
|
|
.line 49
|
|
:pswitch_1
|
|
invoke-direct {p0, p1, v0, v1}, Lcom/moji/weathersence/SceneClickFrameLayout;->a(FFZ)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return v1
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public setEasterEggHandler(Lcom/moji/weathersence/SceneClickFrameLayout$EasterEggHandler;)V
|
|
.locals 0
|
|
|
|
.line 87
|
|
iput-object p1, p0, Lcom/moji/weathersence/SceneClickFrameLayout;->a:Lcom/moji/weathersence/SceneClickFrameLayout$EasterEggHandler;
|
|
|
|
return-void
|
|
.end method
|