ConfigActivity: Enable animations on fragment transitions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
83da2aa199
commit
ab271e7153
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user