what-the-bank/sources/com/google/android/material/internal/TouchObserverFrameLayout.java

39 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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 e;
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.e;
if (onTouchListener != null) {
onTouchListener.onTouch(this, motionEvent);
}
return super.onInterceptTouchEvent(motionEvent);
}
@Override // android.view.View
public void setOnTouchListener(View.OnTouchListener onTouchListener) {
this.e = onTouchListener;
}
}