From 1b4e98eb0838fcd0b97be1c5736635f39230b808 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 2 Jan 2017 22:47:47 +0100 Subject: [PATCH] use the commons viewpager --- .../gallery/views/MyViewPager.kt | 36 ------------------- app/src/main/res/layout/activity_medium.xml | 2 +- 2 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 app/src/main/kotlin/com/simplemobiletools/gallery/views/MyViewPager.kt diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/views/MyViewPager.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/views/MyViewPager.kt deleted file mode 100644 index 1ad8f25b5..000000000 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/views/MyViewPager.kt +++ /dev/null @@ -1,36 +0,0 @@ -package com.simplemobiletools.gallery.views - -import android.content.Context -import android.util.AttributeSet -import android.view.MotionEvent - -import com.booking.rtlviewpager.RtlViewPager - -class MyViewPager : RtlViewPager { - - constructor(context: Context) : super(context) { - } - - constructor(context: Context, attrs: AttributeSet) : super(context, attrs) { - } - - override fun onInterceptTouchEvent(ev: MotionEvent): Boolean { - try { - return super.onInterceptTouchEvent(ev) - } catch (ex: IllegalArgumentException) { - ex.printStackTrace() - } - - return false - } - - override fun onTouchEvent(ev: MotionEvent): Boolean { - try { - return super.onTouchEvent(ev) - } catch (ex: IllegalArgumentException) { - ex.printStackTrace() - } - - return false - } -} diff --git a/app/src/main/res/layout/activity_medium.xml b/app/src/main/res/layout/activity_medium.xml index cfbab5d0f..1d8dc6c42 100644 --- a/app/src/main/res/layout/activity_medium.xml +++ b/app/src/main/res/layout/activity_medium.xml @@ -5,7 +5,7 @@ android:layout_width="match_parent" android:layout_height="match_parent"> -