1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-17 06:55:03 -05:00

minor code cleanup

This commit is contained in:
Jesse Vincent 2011-01-06 16:55:48 +00:00
parent 9c847d3e9d
commit 299c057cd4

View File

@ -224,7 +224,7 @@ public class MessageView extends K9Activity implements OnClickListener
} }
@Override @Override
public boolean onKeyDown(int keyCode, KeyEvent event) public boolean onKeyDown(final int keyCode, final KeyEvent event)
{ {
switch (keyCode) switch (keyCode)
{ {
@ -317,41 +317,28 @@ public class MessageView extends K9Activity implements OnClickListener
return true; return true;
} }
case KeyEvent.KEYCODE_Z: case KeyEvent.KEYCODE_Z:
{
mHandler.post(new Runnable()
{
public void run()
{
if (mScreenReaderEnabled)
{
mAccessibleMessageContentView.zoomIn();
}
else
{ {
if (event.isShiftPressed()) if (event.isShiftPressed())
{
mHandler.post(new Runnable()
{
public void run()
{
if (mScreenReaderEnabled)
{
mAccessibleMessageContentView.zoomIn();
}
else
{ {
mMessageContentView.zoomIn(); mMessageContentView.zoomIn();
} }
}
});
}
else
{
mHandler.post(new Runnable()
{
public void run()
{
if (mScreenReaderEnabled)
{
mAccessibleMessageContentView.zoomIn();
}
else else
{ {
mMessageContentView.zoomOut(); mMessageContentView.zoomOut();
} }
} }
});
} }
});
return true; return true;
} }
case KeyEvent.KEYCODE_H: case KeyEvent.KEYCODE_H: