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();
|
final FragmentTransaction transaction = fm.beginTransaction();
|
||||||
if (!isSplitLayout)
|
if (!isSplitLayout)
|
||||||
transaction.addToBackStack(TAG_DETAIL);
|
transaction.addToBackStack(TAG_DETAIL);
|
||||||
|
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
|
||||||
transaction.replace(containerId, detailFragment, TAG_DETAIL);
|
transaction.replace(containerId, detailFragment, TAG_DETAIL);
|
||||||
transaction.commit();
|
transaction.commit();
|
||||||
} else {
|
} else {
|
||||||
@ -120,6 +121,7 @@ public class ConfigActivity extends BaseConfigActivity {
|
|||||||
}
|
}
|
||||||
final FragmentTransaction transaction = fm.beginTransaction();
|
final FragmentTransaction transaction = fm.beginTransaction();
|
||||||
transaction.addToBackStack(TAG_EDIT);
|
transaction.addToBackStack(TAG_EDIT);
|
||||||
|
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
|
||||||
transaction.replace(containerId, editFragment, TAG_EDIT);
|
transaction.replace(containerId, editFragment, TAG_EDIT);
|
||||||
transaction.commit();
|
transaction.commit();
|
||||||
isEditing = true;
|
isEditing = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user