From 519b4881231b1a7737c010e5f19073286e8b1dda Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Wed, 8 Jun 2011 15:34:41 -0700 Subject: [PATCH] Use fragment transition animation for 1pane. Change-Id: I5f62abf87580876c75c8578da1d4a46cb92bce94 --- src/com/android/email/activity/UIControllerOnePane.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/email/activity/UIControllerOnePane.java b/src/com/android/email/activity/UIControllerOnePane.java index 8209bca9a..3538a0cf8 100644 --- a/src/com/android/email/activity/UIControllerOnePane.java +++ b/src/com/android/email/activity/UIControllerOnePane.java @@ -551,6 +551,7 @@ class UIControllerOnePane extends UIControllerBase { Log.d(Logging.LOG_TAG, this + " showFragment: adding " + fragment); } ft.add(R.id.fragment_placeholder, fragment); + ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); commitFragmentTransaction(ft); } @@ -617,6 +618,7 @@ class UIControllerOnePane extends UIControllerBase { } removeFragment(ft, installed); ft.attach(mPreviousFragment); + ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_CLOSE); commitFragmentTransaction(ft); mPreviousFragment = null; return;