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