diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-01-25 19:55:32 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-01-25 19:55:32 +0100 |
commit | 508c381e2ede2742801cc0995fb8561e6fa30b45 (patch) | |
tree | 45f9b26f15979566a02c7a980b45c7b3641f3766 /src/main/java/de | |
parent | 302265bfe3baf50f860662a9a6667d90608031ae (diff) |
change behaviour of back button to close finish activity
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationActivity.java b/src/main/java/de/pixart/messenger/ui/ConversationActivity.java index 29b25a4ac..a68765632 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationActivity.java @@ -1178,7 +1178,7 @@ public class ConversationActivity extends XmppActivity if (!isConversationsOverviewVisable()) { showConversationsOverview(); } else { - moveTaskToBack(true); + super.onBackPressed(); } } @@ -1200,6 +1200,7 @@ public class ConversationActivity extends XmppActivity upKey = KeyEvent.KEYCODE_DPAD_RIGHT; downKey = KeyEvent.KEYCODE_DPAD_LEFT; break; + case Surface.ROTATION_0: default: upKey = KeyEvent.KEYCODE_DPAD_UP; downKey = KeyEvent.KEYCODE_DPAD_DOWN; |