package Ġorg . fu us io . api . view Ċ Ċ import Ġandroid . annotation . Suppress Lint Ċ import Ġandroid . content . Context Ċ import Ġandroid . util . Attribute Set Ċ import Ġandroid . view . KeyEvent Ċ import Ġandroid . view . Motion Event Ċ import Ġandroidx . view pager . widget . ViewPager Ċ Ċ @ Suppress (" Member Visibility Can Be Private ") Ċ class ĠNo Sw ip ing ViewPager ( context : ĠContext , Ġattribute Set : ĠAttributeSet ) ĊĠĠĠ Ġ: ĠView Pager ( context , Ġattribute Set ) Ġ{ ĊĊĠĠĠ Ġvar Ġis Sw ip ing Enabled Ġ= Ġfalse ĊĊĠĠĠ Ġoverride Ġfun Ġexecute KeyEvent ( event : ĠKeyEvent ) Ġ= ĊĠĠĠĠĠĠĠ Ġif Ġ( is Sw ip ing Enabled ) Ġsuper . execute KeyEvent ( event ) Ġelse Ġfalse ĊĊĠĠĠ Ġ@ Suppress Lint (" Click ableView Accessibility ") ĊĠĠĠ Ġoverride Ġfun Ġon Touch Event ( event : ĠMotion Event ) Ġ= ĊĠĠĠĠĠĠĠ Ġif Ġ( is Sw ip ing Enabled ) Ġsuper . on Touch Event ( event ) Ġelse Ġfalse ĊĊĠĠĠ Ġoverride Ġfun Ġon Intercept Touch Event ( event : ĠMotion Event ) Ġ= ĊĠĠĠĠĠĠĠ Ġif Ġ( is Sw ip ing Enabled ) Ġsuper . on Intercept Touch Event ( event ) Ġelse Ġfalse Ċ }