mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Don't animate the previous/next buttons in message view
This commit is contained in:
parent
7c97527d73
commit
3632978b49
@ -1,15 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
android:id="@+id/message_view_wrapper"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent">
|
||||
|
||||
<include layout="@layout/message"/>
|
||||
|
||||
|
||||
<include layout="@layout/message_view_move_buttons"/>
|
||||
|
||||
|
||||
<include layout="@layout/message_view_bottom_buttons"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -37,7 +37,6 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
private static final int ACTIVITY_CHOOSE_FOLDER_COPY = 2;
|
||||
private static final int ACTIVITY_CHOOSE_DIRECTORY = 3;
|
||||
|
||||
private View mTopView;
|
||||
private SingleMessageView mMessageView;
|
||||
|
||||
private PgpData mPgpData;
|
||||
@ -293,7 +292,6 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
setContentView(R.layout.message_view);
|
||||
|
||||
mTopView = findViewById(R.id.message_view_wrapper);
|
||||
mMessageView = (SingleMessageView) findViewById(R.id.message_view);
|
||||
|
||||
//set a callback for the attachment view. With this callback the attachmentview
|
||||
@ -737,7 +735,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
mLastDirection = NEXT;
|
||||
disableButtons();
|
||||
if (K9.showAnimations()) {
|
||||
mTopView.startAnimation(outToLeftAnimation());
|
||||
mMessageView.startAnimation(outToLeftAnimation());
|
||||
}
|
||||
displayMessage(mNextMessage);
|
||||
mNext.requestFocus();
|
||||
@ -752,7 +750,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
mLastDirection = PREVIOUS;
|
||||
disableButtons();
|
||||
if (K9.showAnimations()) {
|
||||
mTopView.startAnimation(inFromRightAnimation());
|
||||
mMessageView.startAnimation(inFromRightAnimation());
|
||||
}
|
||||
displayMessage(mPreviousMessage);
|
||||
mPrevious.requestFocus();
|
||||
|
Loading…
Reference in New Issue
Block a user