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

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 {