0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-16 07:45:06 +00:00

removed useless check inside 'when' statement

This commit is contained in:
X1nto 2021-02-28 14:23:55 +04:00
parent ae37a1e406
commit 18cad94748

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