removed useless check inside 'when' statement

This commit is contained in:
X1nto 2021-02-28 14:23:55 +04:00
parent ae37a1e406
commit 18cad94748
1 changed files with 0 additions and 4 deletions

View File

@ -102,10 +102,6 @@ class MainActivity : AppCompatActivity() {
override fun onOptionsItemSelected(item: MenuItem): Boolean {
return when (item.itemId) {
android.R.id.home -> {
onBackPressedDispatcher.onBackPressed()
true
}
R.id.toolbar_about -> {
navHost.navigate(HomeFragmentDirections.toAboutFragment())
true