aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-11-21 18:57:27 +0100
committeriNPUTmice <daniel@gultsch.de>2014-11-21 18:57:27 +0100
commit424de3ea3a0100ae722ca2b2498c171078320cdb (patch)
tree8336176c5e0ab4fbf72187d5495e8dd0120cb524 /src/main/java/eu
parent40ee9b6a03db602b2ca3eddb7a600d38d890c167 (diff)
move task to back and not finish when hitting back button
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/ConversationActivity.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java
index 0be3a957a..423b06404 100644
--- a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java
@@ -639,14 +639,12 @@ public class ConversationActivity extends XmppActivity implements
}
@Override
- public boolean onKeyDown(final int keyCode, final KeyEvent event) {
- if (keyCode == KeyEvent.KEYCODE_BACK) {
- if (!isConversationsOverviewVisable()) {
- showConversationsOverview();
- return false;
- }
+ public void onBackPressed() {
+ if (!isConversationsOverviewVisable()) {
+ showConversationsOverview();
+ } else {
+ moveTaskToBack(true);
}
- return super.onKeyDown(keyCode, event);
}
@Override