summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2013-08-04 14:11:30 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2013-08-04 14:11:30 +0200
commit7033140730004b0fba4698e27302051b29134ebe (patch)
tree65f92cce90dca25154b57b45d6529067e6de2261 /src
parent8a2640e040c7e4e96bde4b9f15ae0c61c38f8ac0 (diff)
parent45a9c345a7c259718fbf3d51cb0c60cf11fde435 (diff)
downloadAntennaPod-7033140730004b0fba4698e27302051b29134ebe.zip
Merge branch 'nineoldandroids' of git://github.com/patheticpat/AntennaPod into patheticpat-nineoldandroids
Diffstat (limited to 'src')
-rw-r--r--src/de/danoeh/antennapod/util/UndoBarController.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/de/danoeh/antennapod/util/UndoBarController.java b/src/de/danoeh/antennapod/util/UndoBarController.java
index e726717a1..a0240e7ce 100644
--- a/src/de/danoeh/antennapod/util/UndoBarController.java
+++ b/src/de/danoeh/antennapod/util/UndoBarController.java
@@ -16,15 +16,17 @@
package de.danoeh.antennapod.util;
-import android.animation.Animator;
-import android.animation.AnimatorListenerAdapter;
import android.os.Bundle;
import android.os.Handler;
import android.os.Parcelable;
import android.text.TextUtils;
import android.view.View;
-import android.view.ViewPropertyAnimator;
import android.widget.TextView;
+import com.nineoldandroids.animation.Animator;
+import com.nineoldandroids.animation.AnimatorListenerAdapter;
+import com.nineoldandroids.view.ViewHelper;
+import com.nineoldandroids.view.ViewPropertyAnimator;
+import static com.nineoldandroids.view.ViewPropertyAnimator.animate;
import de.danoeh.antennapod.R;
@@ -46,7 +48,7 @@ public class UndoBarController {
public UndoBarController(View undoBarView, UndoListener undoListener) {
mBarView = undoBarView;
- mBarAnimator = mBarView.animate();
+ mBarAnimator = animate(mBarView);
mUndoListener = undoListener;
mMessageView = (TextView) mBarView.findViewById(R.id.undobar_message);
@@ -73,7 +75,7 @@ public class UndoBarController {
mBarView.setVisibility(View.VISIBLE);
if (immediate) {
- mBarView.setAlpha(1);
+ ViewHelper.setAlpha(mBarView, 1);
} else {
mBarAnimator.cancel();
mBarAnimator
@@ -89,7 +91,7 @@ public class UndoBarController {
mHideHandler.removeCallbacks(mHideRunnable);
if (immediate) {
mBarView.setVisibility(View.GONE);
- mBarView.setAlpha(0);
+ ViewHelper.setAlpha(mBarView, 0);
mUndoMessage = null;
mUndoToken = null;