Merge "Use fragment transition animation for 1pane."
This commit is contained in:
commit
3b91d0ce0f
@ -551,6 +551,7 @@ class UIControllerOnePane extends UIControllerBase {
|
|||||||
Log.d(Logging.LOG_TAG, this + " showFragment: adding " + fragment);
|
Log.d(Logging.LOG_TAG, this + " showFragment: adding " + fragment);
|
||||||
}
|
}
|
||||||
ft.add(R.id.fragment_placeholder, fragment);
|
ft.add(R.id.fragment_placeholder, fragment);
|
||||||
|
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
|
||||||
commitFragmentTransaction(ft);
|
commitFragmentTransaction(ft);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -617,6 +618,7 @@ class UIControllerOnePane extends UIControllerBase {
|
|||||||
}
|
}
|
||||||
removeFragment(ft, installed);
|
removeFragment(ft, installed);
|
||||||
ft.attach(mPreviousFragment);
|
ft.attach(mPreviousFragment);
|
||||||
|
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_CLOSE);
|
||||||
commitFragmentTransaction(ft);
|
commitFragmentTransaction(ft);
|
||||||
mPreviousFragment = null;
|
mPreviousFragment = null;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user