catch all exceptions at touching viewpagers
This commit is contained in:
parent
7a5bb09f01
commit
821e920df8
2 changed files with 3 additions and 5 deletions
|
@ -29,6 +29,6 @@ ext {
|
|||
propMinSdkVersion = 16
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '2.21.12'
|
||||
propVersionName = '2.21.13'
|
||||
kotlin_version = '1.1.2-5'
|
||||
}
|
||||
|
|
|
@ -15,8 +15,7 @@ class MyViewPager : RtlViewPager {
|
|||
override fun onInterceptTouchEvent(ev: MotionEvent): Boolean {
|
||||
try {
|
||||
return super.onInterceptTouchEvent(ev)
|
||||
} catch (ex: IllegalArgumentException) {
|
||||
ex.printStackTrace()
|
||||
} catch (ignored: Exception) {
|
||||
}
|
||||
|
||||
return false
|
||||
|
@ -25,8 +24,7 @@ class MyViewPager : RtlViewPager {
|
|||
override fun onTouchEvent(ev: MotionEvent): Boolean {
|
||||
try {
|
||||
return super.onTouchEvent(ev)
|
||||
} catch (ex: IllegalArgumentException) {
|
||||
ex.printStackTrace()
|
||||
} catch (ignored: Exception) {
|
||||
}
|
||||
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue