From 22b304baa9c547cb66eea4b7676be4c2085a23fd Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 5 May 2018 21:27:30 +0200 Subject: add custom animation to ConversationsActivity --- src/main/java/de/pixart/messenger/ui/ConversationsActivity.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/de/pixart') diff --git a/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java b/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java index 5f8b0c18a..17227ff83 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java @@ -495,6 +495,10 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio } else { conversationFragment = new ConversationFragment(); FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction(); + fragmentTransaction.setCustomAnimations( + R.animator.fade_right_in, R.animator.fade_right_out, + R.animator.fade_right_in, R.animator.fade_right_out + ); fragmentTransaction.replace(R.id.main_fragment, conversationFragment); fragmentTransaction.addToBackStack(null); try { -- cgit v1.2.3