27 lines
747 B
Java
27 lines
747 B
Java
package com.ubt.jimu.widgets;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.MotionEvent;
|
|
import androidx.viewpager.widget.ViewPager;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class ForbidViewpager extends ViewPager {
|
|
private boolean k0;
|
|
|
|
public ForbidViewpager(Context context) {
|
|
super(context);
|
|
this.k0 = false;
|
|
}
|
|
|
|
@Override // androidx.viewpager.widget.ViewPager, android.view.ViewGroup
|
|
public boolean onInterceptTouchEvent(MotionEvent motionEvent) {
|
|
return this.k0 && super.onInterceptTouchEvent(motionEvent);
|
|
}
|
|
|
|
public ForbidViewpager(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
this.k0 = false;
|
|
}
|
|
}
|