Created
July 12, 2022 16:56
-
-
Save figonzal1/290bdc681551bca4389f1ed7f919e3bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onOptionsItemSelected(item: MenuItem): Boolean { | |
// Handle item click | |
return when (item.itemId) { | |
R.id.myItem -> { | |
true | |
} | |
else -> super.onOptionsItemSelected(item) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment