From 2b7e7033ee9f36967c1760ea32d90c1bf6cf9543 Mon Sep 17 00:00:00 2001 From: Suhail Alkowaileet Date: Sat, 8 Oct 2016 12:56:29 +0300 Subject: [PATCH] FIX: Wrong direction of swap in Arabic and other RTL languages #35 --- app/build.gradle | 1 + .../main/java/com/simplemobiletools/gallery/MyViewPager.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index d6f193b47..cc007c337 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -41,6 +41,7 @@ dependencies { compile 'com.jakewharton:butterknife:8.0.1' compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0' compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1' + compile 'com.booking:rtlviewpager:1.0.1' compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" apt 'com.jakewharton:butterknife-compiler:8.0.1' diff --git a/app/src/main/java/com/simplemobiletools/gallery/MyViewPager.java b/app/src/main/java/com/simplemobiletools/gallery/MyViewPager.java index c73a153f1..eca6b83cb 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/MyViewPager.java +++ b/app/src/main/java/com/simplemobiletools/gallery/MyViewPager.java @@ -5,7 +5,9 @@ import android.support.v4.view.ViewPager; import android.util.AttributeSet; import android.view.MotionEvent; -public class MyViewPager extends ViewPager { +import com.booking.rtlviewpager.RtlViewPager; + +public class MyViewPager extends RtlViewPager { public MyViewPager(Context context) { super(context);