68 lines
1.6 KiB
Smali
68 lines
1.6 KiB
Smali
.class public Lcom/moji/CatchParentEventView;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "CatchParentEventView.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 15
|
|
invoke-direct {p0, p1, v0}, Lcom/moji/CatchParentEventView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 19
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/moji/CatchParentEventView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
.line 23
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 2
|
|
|
|
.line 28
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 30
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/moji/CatchParentEventView;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0, v1}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V
|
|
|
|
.line 33
|
|
:goto_0
|
|
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
return v1
|
|
.end method
|