diff --git a/.idea/misc.xml b/.idea/misc.xml
index 6d4e1750..fca20c8e 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -27,7 +27,7 @@
-
+
diff --git a/app/app-release.apk b/app/app-release.apk
index 45e9bbd3..ad33e1bf 100644
Binary files a/app/app-release.apk and b/app/app-release.apk differ
diff --git a/app/build.gradle b/app/build.gradle
index cd0fa852..ddc4becd 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -7,8 +7,8 @@ android {
applicationId "us.koller.cameraroll"
minSdkVersion 19
targetSdkVersion 25
- versionCode 16
- versionName "v1.3.1 Beta"
+ versionCode 17
+ versionName "v1.3.2 Beta"
renderscriptTargetApi 25
vectorDrawables.useSupportLibrary = true
renderscriptSupportModeEnabled true
diff --git a/app/src/main/java/us/koller/cameraroll/ui/AlbumActivity.java b/app/src/main/java/us/koller/cameraroll/ui/AlbumActivity.java
index ac9d10d0..7bb16a2c 100644
--- a/app/src/main/java/us/koller/cameraroll/ui/AlbumActivity.java
+++ b/app/src/main/java/us/koller/cameraroll/ui/AlbumActivity.java
@@ -740,13 +740,13 @@ public void run() {
toolbar.setTitleTextColor(ContextCompat.getColor(AlbumActivity.this, R.color.grey_900_translucent));
- /*//show share button
- menu.findItem(R.id.share).setVisible(true);
+ //show share button
+ //menu.findItem(R.id.share).setVisible(true);
//show copy & move button
- menu.findItem(R.id.copy).setVisible(true);
+ /*menu.findItem(R.id.copy).setVisible(true);
menu.findItem(R.id.move).setVisible(true);*/
}
- }, navIcon instanceof Animatable ? 500 : 0);
+ }, navIcon instanceof Animatable ? (int) (500 * Util.getAnimatorSpeed(this)) : 0);
} else {
toolbar.setBackgroundColor(ContextCompat
.getColor(this, R.color.colorAccent));
@@ -820,7 +820,7 @@ public void run() {
menu.findItem(R.id.copy).setVisible(false);
menu.findItem(R.id.move).setVisible(false);
}
- }, navIcon instanceof Animatable ? 500 : 0);
+ }, navIcon instanceof Animatable ? (int) (500 * Util.getAnimatorSpeed(this)) : 0);
animateFab(false, false);
}
@@ -871,7 +871,7 @@ public void run() {
setPhotosResult();
}
}
- }, 400);
+ }, (int) (400 * Util.getAnimatorSpeed(this)));
}
public void animateFab(final boolean show, boolean click) {
@@ -908,7 +908,7 @@ public void run() {
.setDuration(250)
.start();
}
- }, click ? 400 : 0);
+ }, click ? (int) (400 * Util.getAnimatorSpeed(this)) : 0);
}
private void setSystemUiFlags() {
diff --git a/app/src/main/java/us/koller/cameraroll/ui/FileExplorerActivity.java b/app/src/main/java/us/koller/cameraroll/ui/FileExplorerActivity.java
index a68cb77e..5a0f466e 100644
--- a/app/src/main/java/us/koller/cameraroll/ui/FileExplorerActivity.java
+++ b/app/src/main/java/us/koller/cameraroll/ui/FileExplorerActivity.java
@@ -289,7 +289,7 @@ public boolean onPreDraw() {
public void run() {
recyclerViewAdapter.pickTarget();
}
- }, 500);
+ }, (int) (500 * Util.getAnimatorSpeed(this)));
}
}
}
@@ -720,7 +720,7 @@ public void run() {
}
}
}
- }, navIcon instanceof Animatable ? 500 : 0);
+ }, navIcon instanceof Animatable ? (int) (500 * Util.getAnimatorSpeed(this)) : 0);
}
@Override
@@ -808,7 +808,7 @@ public void run() {
}
}
}
- }, 300);
+ }, (int) (300 * Util.getAnimatorSpeed(this)));
}
@Override
@@ -911,6 +911,6 @@ public void setTitle(Toolbar toolbar) {
}
}
}
- }, navIcon instanceof Animatable ? 500 : 0);
+ }, navIcon instanceof Animatable ? (int) (500 * Util.getAnimatorSpeed(this)) : 0);
}
}
diff --git a/app/src/main/java/us/koller/cameraroll/ui/FileOperationDialogActivity.java b/app/src/main/java/us/koller/cameraroll/ui/FileOperationDialogActivity.java
index ba146194..f0df12c8 100644
--- a/app/src/main/java/us/koller/cameraroll/ui/FileOperationDialogActivity.java
+++ b/app/src/main/java/us/koller/cameraroll/ui/FileOperationDialogActivity.java
@@ -10,7 +10,6 @@
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
-import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -19,7 +18,6 @@
import android.widget.TextView;
import com.bumptech.glide.Glide;
-import com.bumptech.glide.load.engine.DiskCacheStrategy;
import java.util.ArrayList;
diff --git a/app/src/main/java/us/koller/cameraroll/ui/ItemActivity.java b/app/src/main/java/us/koller/cameraroll/ui/ItemActivity.java
index cc29050b..73a78a37 100644
--- a/app/src/main/java/us/koller/cameraroll/ui/ItemActivity.java
+++ b/app/src/main/java/us/koller/cameraroll/ui/ItemActivity.java
@@ -717,7 +717,7 @@ public void bottomBarOnClick(View v) {
public void run() {
showDeleteDialog();
}
- }, 400);
+ }, (int) (400 * Util.getAnimatorSpeed(this)));
} else {
showDeleteDialog();
}
diff --git a/app/src/main/java/us/koller/cameraroll/util/Util.java b/app/src/main/java/us/koller/cameraroll/util/Util.java
index bc530358..707efaf2 100644
--- a/app/src/main/java/us/koller/cameraroll/util/Util.java
+++ b/app/src/main/java/us/koller/cameraroll/util/Util.java
@@ -15,6 +15,7 @@
import android.os.Build;
import android.provider.BaseColumns;
import android.provider.MediaStore;
+import android.provider.Settings;
import android.support.annotation.RequiresApi;
import android.support.design.widget.Snackbar;
import android.support.v4.content.ContextCompat;
@@ -24,6 +25,7 @@
import android.util.Log;
import android.view.View;
import android.view.Window;
+import android.view.WindowManager;
import android.widget.TextView;
import android.widget.Toast;
@@ -171,4 +173,9 @@ public static int[] getScreenSize(Activity context) {
displayRect.left, displayRect.top,
displayRect.right, displayRect.bottom};
}
+
+ public static float getAnimatorSpeed(Context context) {
+ return Settings.Global.getFloat(context.getContentResolver(),
+ Settings.Global.ANIMATOR_DURATION_SCALE, 1.0f);
+ }
}
diff --git a/app/src/main/res/drawable-ldrtl-v21/back_to_cancel_avd.xml b/app/src/main/res/drawable-ldrtl-v21/back_to_cancel_avd.xml
new file mode 100644
index 00000000..e62d13bc
--- /dev/null
+++ b/app/src/main/res/drawable-ldrtl-v21/back_to_cancel_avd.xml
@@ -0,0 +1,206 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable-ldrtl-v21/cancel_to_back_avd.xml b/app/src/main/res/drawable-ldrtl-v21/cancel_to_back_avd.xml
new file mode 100644
index 00000000..aeed546c
--- /dev/null
+++ b/app/src/main/res/drawable-ldrtl-v21/cancel_to_back_avd.xml
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout-v21/file_op_view_holder.xml b/app/src/main/res/layout-v21/file_op_view_holder.xml
index d575a3cf..c9896c41 100644
--- a/app/src/main/res/layout-v21/file_op_view_holder.xml
+++ b/app/src/main/res/layout-v21/file_op_view_holder.xml
@@ -9,8 +9,8 @@
diff --git a/app/src/main/res/layout/file_op_view_holder.xml b/app/src/main/res/layout/file_op_view_holder.xml
index 2db5b149..48b4acee 100644
--- a/app/src/main/res/layout/file_op_view_holder.xml
+++ b/app/src/main/res/layout/file_op_view_holder.xml
@@ -8,8 +8,8 @@