mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 11:57:18 +01:00
45 lines
1.5 KiB
Java
45 lines
1.5 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;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RestrictTo;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
/* loaded from: classes7.dex */
|
|
public class TouchObserverFrameLayout extends FrameLayout {
|
|
|
|
@Nullable
|
|
private View.OnTouchListener onTouchListener;
|
|
|
|
public TouchObserverFrameLayout(@NonNull Context context) {
|
|
super(context);
|
|
}
|
|
|
|
@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);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setOnTouchListener(@Nullable View.OnTouchListener onTouchListener) {
|
|
this.onTouchListener = onTouchListener;
|
|
}
|
|
|
|
public TouchObserverFrameLayout(@NonNull Context context, @Nullable AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
|
|
public TouchObserverFrameLayout(@NonNull Context context, @Nullable AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
}
|
|
}
|