move task to back and not finish when hitting back button

This commit is contained in:
iNPUTmice 2014-11-21 18:57:27 +01:00
parent 40ee9b6a03
commit 424de3ea3a

View file

@ -639,14 +639,12 @@ public class ConversationActivity extends XmppActivity implements
} }
@Override @Override
public boolean onKeyDown(final int keyCode, final KeyEvent event) { public void onBackPressed() {
if (keyCode == KeyEvent.KEYCODE_BACK) { if (!isConversationsOverviewVisable()) {
if (!isConversationsOverviewVisable()) { showConversationsOverview();
showConversationsOverview(); } else {
return false; moveTaskToBack(true);
}
} }
return super.onKeyDown(keyCode, event);
} }
@Override @Override