Weather/smali_classes2/com/moji/mjweather/weather/control/PagerLayout.smali
2021-05-10 10:13:34 +02:00

108 lines
2.4 KiB
Smali

.class public Lcom/moji/mjweather/weather/control/PagerLayout;
.super Landroid/widget/LinearLayout;
.source "PagerLayout.java"
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 0
.line 18
invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 0
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroid/support/annotation/Nullable;
.end annotation
.end param
.line 22
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 0
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroid/support/annotation/Nullable;
.end annotation
.end param
.line 26
invoke-direct {p0, p1, p2, p3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method private a(Z)V
.locals 1
.line 46
invoke-virtual {p0}, Lcom/moji/mjweather/weather/control/PagerLayout;->getParent()Landroid/view/ViewParent;
move-result-object v0
if-eqz v0, :cond_0
.line 49
invoke-interface {v0, p1}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V
:cond_0
return-void
.end method
# virtual methods
.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
.locals 2
.line 32
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v0
const/4 v1, 0x3
if-eq v0, v1, :cond_0
packed-switch v0, :pswitch_data_0
goto :goto_0
:pswitch_0
const/4 v0, 0x1
.line 35
invoke-direct {p0, v0}, Lcom/moji/mjweather/weather/control/PagerLayout;->a(Z)V
goto :goto_0
:cond_0
:pswitch_1
const/4 v0, 0x0
.line 39
invoke-direct {p0, v0}, Lcom/moji/mjweather/weather/control/PagerLayout;->a(Z)V
.line 42
:goto_0
invoke-super {p0, p1}, Landroid/widget/LinearLayout;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z
move-result p1
return p1
nop
:pswitch_data_0
.packed-switch 0x0
:pswitch_0
:pswitch_1
.end packed-switch
.end method