Rabbit-R1/android (non root)/java/sources/com/google/android/material/internal/TouchObserverFrameLayout.java
2024-05-21 17:08:36 -04:00

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);
}
}