Use fragment transition animation for 1pane.

Change-Id: I5f62abf87580876c75c8578da1d4a46cb92bce94
This commit is contained in:
Makoto Onuki 2011-06-08 15:34:41 -07:00
parent 3e343286d7
commit 519b488123

View File

@ -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;