summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-05-29 09:43:05 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-29 09:43:05 +0000
commit18c183c24415eef160befc28a4c4e5982ad66d64 (patch)
tree7b79b2a2e86af4810620dd79a82395f90f375617
parent8bde324e003a081bf8d83fe28f040c318a4d2165 (diff)
parent3c14bc3e128c9791387b8936ff1bc67a4e243d7f (diff)
am 3c14bc3e: Use common AnimationListenerAdapter instead of private class.
* commit '3c14bc3e128c9791387b8936ff1bc67a4e243d7f': Use common AnimationListenerAdapter instead of private class.
-rw-r--r--src/com/android/dialer/DialtactsActivity.java20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index a593c14a5..0adc27ddc 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -64,6 +64,7 @@ import android.widget.Toast;
import com.android.contacts.common.CallUtil;
import com.android.contacts.common.activity.TransactionSafeActivity;
+import com.android.contacts.common.animation.AnimationListenerAdapter;
import com.android.contacts.common.dialog.ClearFrequentsDialog;
import com.android.contacts.common.interactions.ImportExportDialogFragment;
import com.android.contacts.common.list.OnPhoneNumberPickerActionListener;
@@ -613,7 +614,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
updateFloatingActionButton();
if (animate) {
Animation slideOut = AnimationUtils.loadAnimation(this, R.anim.slide_out);
- slideOut.setAnimationListener(new ActivityAnimationListener() {
+ slideOut.setAnimationListener(new AnimationListenerAdapter() {
@Override
public void onAnimationEnd(Animation animation) {
commitDialpadFragmentHide();
@@ -1104,23 +1105,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
mFloatingActionButtonContainer.setLayoutParams(params);
}
- /**
- * Convenience class which implements AnimationListener interface as null-op methods.
- */
- private class ActivityAnimationListener implements AnimationListener {
- @Override
- public void onAnimationStart(Animation animation) {
- }
-
- @Override
- public void onAnimationEnd(Animation animation) {
- }
-
- @Override
- public void onAnimationRepeat(Animation animation) {
- }
- }
-
@Override
public boolean isActionBarShowing() {
return mActionBarController.isActionBarShowing();