From b48bf39e08d00910c0cc78ba66c635f15a6893a0 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 22 Jan 2017 18:26:47 +0100 Subject: [PATCH] change behaviour of back button to close finish activity. fixes #704 --- .../java/eu/siacs/conversations/ui/ConversationActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java index c908c5cb5..8a7a27856 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java @@ -972,7 +972,7 @@ public class ConversationActivity extends XmppActivity if (!isConversationsOverviewVisable()) { showConversationsOverview(); } else { - moveTaskToBack(true); + super.onBackPressed(); } } @@ -994,6 +994,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;