ConfigActivity: Enable animations on fragment transitions

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Samuel Holland 2017-08-14 15:20:57 -05:00
parent 83da2aa199
commit ab271e7153

View File

@ -78,6 +78,7 @@ public class ConfigActivity extends BaseConfigActivity {
final FragmentTransaction transaction = fm.beginTransaction();
if (!isSplitLayout)
transaction.addToBackStack(TAG_DETAIL);
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
transaction.replace(containerId, detailFragment, TAG_DETAIL);
transaction.commit();
} else {
@ -120,6 +121,7 @@ public class ConfigActivity extends BaseConfigActivity {
}
final FragmentTransaction transaction = fm.beginTransaction();
transaction.addToBackStack(TAG_EDIT);
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
transaction.replace(containerId, editFragment, TAG_EDIT);
transaction.commit();
isEditing = true;