package com.scb.phone.view.custom.common; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import androidx.viewpager.widget.ViewPager; /* loaded from: classes5.dex */ public class NoSwipeViewPager extends ViewPager { private boolean d; public NoSwipeViewPager(Context context, AttributeSet attributeSet) { super(context, attributeSet); this.d = true; } @Override // androidx.viewpager.widget.ViewPager, android.view.View public boolean onTouchEvent(MotionEvent motionEvent) { return this.d && super.onTouchEvent(motionEvent); } @Override // androidx.viewpager.widget.ViewPager, android.view.ViewGroup public boolean onInterceptTouchEvent(MotionEvent motionEvent) { return this.d && super.onInterceptTouchEvent(motionEvent); } public void setPagingEnabled(boolean z) { this.d = z; } }