mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
move task to back and not finish when hitting back button
This commit is contained in:
parent
40ee9b6a03
commit
424de3ea3a
@ -639,15 +639,13 @@ 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();
|
||||||
return false;
|
} else {
|
||||||
|
moveTaskToBack(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return super.onKeyDown(keyCode, event);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onNewIntent(final Intent intent) {
|
protected void onNewIntent(final Intent intent) {
|
||||||
|
Loading…
Reference in New Issue
Block a user