From 299c057cd414ddd41c481f3dd2e0e5947e435f02 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 6 Jan 2011 16:55:48 +0000 Subject: [PATCH] minor code cleanup --- src/com/fsck/k9/activity/MessageView.java | 35 +++++++---------------- 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/src/com/fsck/k9/activity/MessageView.java b/src/com/fsck/k9/activity/MessageView.java index eedcd01d9..59885134c 100644 --- a/src/com/fsck/k9/activity/MessageView.java +++ b/src/com/fsck/k9/activity/MessageView.java @@ -224,7 +224,7 @@ public class MessageView extends K9Activity implements OnClickListener } @Override - public boolean onKeyDown(int keyCode, KeyEvent event) + public boolean onKeyDown(final int keyCode, final KeyEvent event) { switch (keyCode) { @@ -318,40 +318,27 @@ public class MessageView extends K9Activity implements OnClickListener } case KeyEvent.KEYCODE_Z: { - if (event.isShiftPressed()) + mHandler.post(new Runnable() { - mHandler.post(new Runnable() + public void run() { - public void run() + if (mScreenReaderEnabled) { - if (mScreenReaderEnabled) - { - mAccessibleMessageContentView.zoomIn(); - } - else + mAccessibleMessageContentView.zoomIn(); + } + else + { + if (event.isShiftPressed()) { mMessageContentView.zoomIn(); } - } - }); - } - else - { - mHandler.post(new Runnable() - { - public void run() - { - if (mScreenReaderEnabled) - { - mAccessibleMessageContentView.zoomIn(); - } else { mMessageContentView.zoomOut(); } } - }); - } + } + }); return true; } case KeyEvent.KEYCODE_H: