Small improvement

pull/177/head
M66B 5 years ago
parent db0fc6d49e
commit 81d32e6e40

@ -4439,17 +4439,17 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
switch (event.getKeyCode()) { switch (event.getKeyCode()) {
case KeyEvent.KEYCODE_VOLUME_UP: case KeyEvent.KEYCODE_VOLUME_UP:
return !up || onNext(context); return (!up || onNext(context));
case KeyEvent.KEYCODE_VOLUME_DOWN: case KeyEvent.KEYCODE_VOLUME_DOWN:
return !up || onPrevious(context); return (!up || onPrevious(context));
case KeyEvent.KEYCODE_A: case KeyEvent.KEYCODE_A:
return up && onArchive(context); return (up && onArchive(context));
case KeyEvent.KEYCODE_C: case KeyEvent.KEYCODE_C:
return up && onCompose(context); return (up && onCompose(context));
case KeyEvent.KEYCODE_D: case KeyEvent.KEYCODE_D:
return up && onDelete(context); return (up && onDelete(context));
case KeyEvent.KEYCODE_R: case KeyEvent.KEYCODE_R:
return up && onReply(context); return (up && onReply(context));
default: default:
return false; return false;
} }

Loading…
Cancel
Save