diff --git a/app/src/main/java/com/money/manager/ex/home/HomeFragment.java b/app/src/main/java/com/money/manager/ex/home/HomeFragment.java index 79067b06ac..2bb8395b96 100644 --- a/app/src/main/java/com/money/manager/ex/home/HomeFragment.java +++ b/app/src/main/java/com/money/manager/ex/home/HomeFragment.java @@ -327,13 +327,14 @@ public void onLoadFinished(Loader loader, Cursor data) { barExpenses.setMax((int) (Math.abs(income) + Math.abs(expenses))); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) { + long longDuration = getResources().getInteger(android.R.integer.config_longAnimTime); ObjectAnimator animationIncome = ObjectAnimator.ofInt(barIncome, "progress", (int) Math.abs(income)); - animationIncome.setDuration(1000); // 0.5 second + animationIncome.setDuration(longDuration); animationIncome.setInterpolator(new DecelerateInterpolator()); animationIncome.start(); ObjectAnimator animationExpenses = ObjectAnimator.ofInt(barExpenses, "progress", (int) Math.abs(expenses)); - animationExpenses.setDuration(1000); // 0.5 second + animationExpenses.setDuration(longDuration); animationExpenses.setInterpolator(new DecelerateInterpolator()); animationExpenses.start(); } else { diff --git a/app/src/main/java/com/money/manager/ex/home/MainActivity.java b/app/src/main/java/com/money/manager/ex/home/MainActivity.java index 90a70bf0b1..e0c761e805 100644 --- a/app/src/main/java/com/money/manager/ex/home/MainActivity.java +++ b/app/src/main/java/com/money/manager/ex/home/MainActivity.java @@ -1301,7 +1301,7 @@ private void startSyncIconRotation(MenuItem item) { Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); animation.setInterpolator(new LinearInterpolator()); - animation.setDuration(1200); + animation.setDuration(getResources().getInteger(android.R.integer.config_longAnimTime)); // animRotate = AnimationUtils.loadAnimation(this, R.anim.rotation); animation.setRepeatCount(Animation.INFINITE);