1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 09:08:49 -05:00

Fixed Issue 3850. Revert part of the onBackPressed() magic to back from MessageView.

At least, this code still needed on android.os.Build.VERSION.SDK_INT == GINGERBREAD_MR1.
This commit is contained in:
Koji Arai 2011-11-17 00:43:27 +09:00
parent 76f8e39214
commit d82d0a220c

View File

@ -127,6 +127,15 @@ public class MessageView extends K9Activity implements OnClickListener {
@Override
public boolean onKeyDown(final int keyCode, final KeyEvent event) {
if (
// XXX TODO - when we go to android 2.0, uncomment this
// android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.ECLAIR &&
keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
// Take care of calling this method on earlier versions of
// the platform where it doesn't exist.
onBackPressed();
return true;
}
switch (keyCode) {
case KeyEvent.KEYCODE_VOLUME_UP: {
if (K9.useVolumeKeysForNavigationEnabled()) {