minor code cleanup
This commit is contained in:
parent
9c847d3e9d
commit
299c057cd4
1 changed files with 11 additions and 24 deletions
|
@ -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)
|
||||
{
|
||||
|
@ -317,41 +317,28 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||
return true;
|
||||
}
|
||||
case KeyEvent.KEYCODE_Z:
|
||||
{
|
||||
mHandler.post(new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
if (mScreenReaderEnabled)
|
||||
{
|
||||
mAccessibleMessageContentView.zoomIn();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (event.isShiftPressed())
|
||||
{
|
||||
mHandler.post(new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
if (mScreenReaderEnabled)
|
||||
{
|
||||
mAccessibleMessageContentView.zoomIn();
|
||||
}
|
||||
else
|
||||
{
|
||||
mMessageContentView.zoomIn();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
mHandler.post(new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
if (mScreenReaderEnabled)
|
||||
{
|
||||
mAccessibleMessageContentView.zoomIn();
|
||||
}
|
||||
else
|
||||
{
|
||||
mMessageContentView.zoomOut();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
return true;
|
||||
}
|
||||
case KeyEvent.KEYCODE_H:
|
||||
|
|
Loading…
Reference in a new issue