Revert "Don't close app when clicking app icon in MainActivity."

This was also breaking the back button.

This reverts commit 9b5175114f.
This commit is contained in:
Felix Ableitner 2015-12-22 02:27:14 +01:00
parent 514827ad8f
commit 39a2120300
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ class MainActivity extends EnsichatActivity {
currentChat = None
getSupportActionBar.setDisplayHomeAsUpEnabled(false)
setTitle(R.string.app_name)
}
} else
super.onBackPressed()
}
override def onOptionsItemSelected(item: MenuItem): Boolean = item.getItemId match {