change behaviour of back button to close finish activity. fixes #704

This commit is contained in:
Daniel Gultsch 2017-01-22 18:26:47 +01:00
parent 7035f38e0b
commit b48bf39e08
1 changed files with 2 additions and 1 deletions

View File

@ -972,7 +972,7 @@ public class ConversationActivity extends XmppActivity
if (!isConversationsOverviewVisable()) { if (!isConversationsOverviewVisable()) {
showConversationsOverview(); showConversationsOverview();
} else { } else {
moveTaskToBack(true); super.onBackPressed();
} }
} }
@ -994,6 +994,7 @@ public class ConversationActivity extends XmppActivity
upKey = KeyEvent.KEYCODE_DPAD_RIGHT; upKey = KeyEvent.KEYCODE_DPAD_RIGHT;
downKey = KeyEvent.KEYCODE_DPAD_LEFT; downKey = KeyEvent.KEYCODE_DPAD_LEFT;
break; break;
case Surface.ROTATION_0:
default: default:
upKey = KeyEvent.KEYCODE_DPAD_UP; upKey = KeyEvent.KEYCODE_DPAD_UP;
downKey = KeyEvent.KEYCODE_DPAD_DOWN; downKey = KeyEvent.KEYCODE_DPAD_DOWN;