catch all exceptions at touching viewpagers

This commit is contained in:
tibbi 2017-06-24 19:05:43 +02:00
parent 7a5bb09f01
commit 821e920df8
2 changed files with 3 additions and 5 deletions

View file

@ -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'
}

View file

@ -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