discord-jadx/app/src/main/java/com/discord/widgets/settings/profile/TouchInterceptingCoordinato...

57 lines
2.9 KiB
Java

package com.discord.widgets.settings.profile;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import d0.z.d.m;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: TouchInterceptingCoordinatorLayout.kt */
public final class TouchInterceptingCoordinatorLayout extends CoordinatorLayout {
private Function1<? super MotionEvent, Boolean> onInterceptTouchEvent;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public TouchInterceptingCoordinatorLayout(Context context) {
super(context);
m.checkNotNullParameter(context, "context");
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public TouchInterceptingCoordinatorLayout(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
m.checkNotNullParameter(context, "context");
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public TouchInterceptingCoordinatorLayout(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
m.checkNotNullParameter(context, "context");
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ TouchInterceptingCoordinatorLayout(Context context, AttributeSet attributeSet, int i, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(context, (i2 & 2) != 0 ? null : attributeSet, (i2 & 4) != 0 ? 0 : i);
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ TouchInterceptingCoordinatorLayout(Context context, AttributeSet attributeSet, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(context, (i & 2) != 0 ? null : attributeSet);
}
/* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: kotlin.jvm.functions.Function1<? super android.view.MotionEvent, java.lang.Boolean>, kotlin.jvm.functions.Function1<android.view.MotionEvent, java.lang.Boolean> */
public final Function1<MotionEvent, Boolean> getOnInterceptTouchEvent() {
return this.onInterceptTouchEvent;
}
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout, android.view.ViewGroup
public boolean onInterceptTouchEvent(MotionEvent motionEvent) {
Function1<? super MotionEvent, Boolean> function1 = this.onInterceptTouchEvent;
return function1 != null ? function1.invoke(motionEvent).booleanValue() : super.onInterceptTouchEvent(motionEvent);
}
public final void setOnInterceptTouchEvent(Function1<? super MotionEvent, Boolean> function1) {
this.onInterceptTouchEvent = function1;
}
}