Created
February 21, 2020 19:01
-
-
Save waseefakhtar/2729a2b64ec3db3dca8752bc73024ae4 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 { | |
return when (item.itemId) { | |
android.R.id.home -> { | |
drawer.openDrawer(GravityCompat.START) | |
true | |
} | |
else -> super.onOptionsItemSelected(item) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment