mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 17:12:31 -06:00
38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
package com.google.android.material.internal;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.MotionEvent;
|
|
import android.view.View;
|
|
import android.widget.FrameLayout;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class TouchObserverFrameLayout extends FrameLayout {
|
|
private View.OnTouchListener onTouchListener;
|
|
|
|
@Override // android.view.View
|
|
public void setOnTouchListener(View.OnTouchListener onTouchListener) {
|
|
this.onTouchListener = onTouchListener;
|
|
}
|
|
|
|
public TouchObserverFrameLayout(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
public TouchObserverFrameLayout(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
|
|
public TouchObserverFrameLayout(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
}
|
|
|
|
@Override // android.view.ViewGroup
|
|
public boolean onInterceptTouchEvent(MotionEvent motionEvent) {
|
|
View.OnTouchListener onTouchListener = this.onTouchListener;
|
|
if (onTouchListener != null) {
|
|
onTouchListener.onTouch(this, motionEvent);
|
|
}
|
|
return super.onInterceptTouchEvent(motionEvent);
|
|
}
|
|
}
|