mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-12 04:25:08 -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 {
|
} else {
|
||||||
setContentView(R.layout.message_list);
|
setContentView(R.layout.message_list);
|
||||||
mViewSwitcher = (ViewSwitcher) findViewById(R.id.container);
|
mViewSwitcher = (ViewSwitcher) findViewById(R.id.container);
|
||||||
mViewSwitcher.setAnimateFirstView(true);
|
|
||||||
mViewSwitcher.setFirstInAnimation(AnimationUtils.loadAnimation(this, R.anim.slide_in_left));
|
mViewSwitcher.setFirstInAnimation(AnimationUtils.loadAnimation(this, R.anim.slide_in_left));
|
||||||
mViewSwitcher.setFirstOutAnimation(AnimationUtils.loadAnimation(this, R.anim.slide_out_right));
|
mViewSwitcher.setFirstOutAnimation(AnimationUtils.loadAnimation(this, R.anim.slide_out_right));
|
||||||
mViewSwitcher.setSecondInAnimation(AnimationUtils.loadAnimation(this, R.anim.slide_in_right));
|
mViewSwitcher.setSecondInAnimation(AnimationUtils.loadAnimation(this, R.anim.slide_in_right));
|
||||||
@ -326,6 +325,7 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MESSAGE_VIEW: {
|
case MESSAGE_VIEW: {
|
||||||
|
mViewSwitcher.setAnimateFirstView(true);
|
||||||
showMessageView();
|
showMessageView();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user