removed useless check inside 'when' statement
This commit is contained in:
parent
ae37a1e406
commit
18cad94748
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue