1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-24 08:38:51 -05:00

Only animate the firt view transition if it's from the message list to the message view

This commit is contained in:
Jesse Vincent 2013-02-05 12:18:56 -05:00
parent 3b8421a9a8
commit 69da9bdd7a

View File

@ -200,7 +200,6 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
} else {
setContentView(R.layout.message_list);
mViewSwitcher = (ViewSwitcher) findViewById(R.id.container);
mViewSwitcher.setAnimateFirstView(true);
mViewSwitcher.setFirstInAnimation(AnimationUtils.loadAnimation(this, R.anim.slide_in_left));
mViewSwitcher.setFirstOutAnimation(AnimationUtils.loadAnimation(this, R.anim.slide_out_right));
mViewSwitcher.setSecondInAnimation(AnimationUtils.loadAnimation(this, R.anim.slide_in_right));
@ -326,6 +325,7 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
break;
}
case MESSAGE_VIEW: {
mViewSwitcher.setAnimateFirstView(true);
showMessageView();
break;
}