|
|
|
@ -100,24 +100,19 @@ abstract class BaseActivity( |
|
|
|
|
} ?: super.onCreateOptionsMenu(menu) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onMenuOpened(featureId: Int, menu: Menu?): Boolean { |
|
|
|
|
menu?.let { |
|
|
|
|
menu.applyOpenTint(this) |
|
|
|
|
return super.onMenuOpened(featureId, menu) |
|
|
|
|
} |
|
|
|
|
return true |
|
|
|
|
override fun onMenuOpened(featureId: Int, menu: Menu): Boolean { |
|
|
|
|
menu.applyOpenTint(this) |
|
|
|
|
return super.onMenuOpened(featureId, menu) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
open fun onCompatCreateOptionsMenu(menu: Menu) = super.onCreateOptionsMenu(menu) |
|
|
|
|
|
|
|
|
|
final override fun onOptionsItemSelected(item: MenuItem?): Boolean { |
|
|
|
|
item?.let { |
|
|
|
|
if (it.itemId == android.R.id.home) { |
|
|
|
|
supportFinishAfterTransition() |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
final override fun onOptionsItemSelected(item: MenuItem): Boolean { |
|
|
|
|
if (item.itemId == android.R.id.home) { |
|
|
|
|
supportFinishAfterTransition() |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
return item != null && onCompatOptionsItemSelected(item) |
|
|
|
|
return onCompatOptionsItemSelected(item) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
open fun onCompatOptionsItemSelected(item: MenuItem) = super.onOptionsItemSelected(item) |
|
|
|
|