Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69da9bdd authored by Jesse Vincent's avatar Jesse Vincent
Browse files

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

parent 3b8421a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
            }