mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-11 20:15:03 -05:00
Only animate the firt view transition if it's from the message list to the message view
This commit is contained in:
parent
3b8421a9a8
commit
69da9bdd7a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user