mirror of https://github.com/M66B/FairEmail.git
Added custom account/identity animation
This commit is contained in:
parent
eab944f3e3
commit
a75e878978
|
@ -1294,6 +1294,7 @@ public class FragmentAccount extends FragmentBase {
|
||||||
FragmentIdentity fragment = new FragmentIdentity();
|
FragmentIdentity fragment = new FragmentIdentity();
|
||||||
fragment.setArguments(aargs);
|
fragment.setArguments(aargs);
|
||||||
FragmentTransaction fragmentTransaction = getParentFragmentManager().beginTransaction();
|
FragmentTransaction fragmentTransaction = getParentFragmentManager().beginTransaction();
|
||||||
|
fragmentTransaction.setCustomAnimations(R.anim.enter_from_right, R.anim.leave_to_left);
|
||||||
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("identity");
|
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("identity");
|
||||||
fragmentTransaction.commit();
|
fragmentTransaction.commit();
|
||||||
}
|
}
|
||||||
|
|
|
@ -556,6 +556,7 @@ public class FragmentPop extends FragmentBase {
|
||||||
FragmentIdentity fragment = new FragmentIdentity();
|
FragmentIdentity fragment = new FragmentIdentity();
|
||||||
fragment.setArguments(aargs);
|
fragment.setArguments(aargs);
|
||||||
FragmentTransaction fragmentTransaction = getParentFragmentManager().beginTransaction();
|
FragmentTransaction fragmentTransaction = getParentFragmentManager().beginTransaction();
|
||||||
|
fragmentTransaction.setCustomAnimations(R.anim.enter_from_right, R.anim.leave_to_left);
|
||||||
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("identity");
|
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("identity");
|
||||||
fragmentTransaction.commit();
|
fragmentTransaction.commit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue