Skip to content

Instantly share code, notes, and snippets.

@waseefakhtar
Created February 21, 2020 19:01
Show Gist options
  • Save waseefakhtar/2729a2b64ec3db3dca8752bc73024ae4 to your computer and use it in GitHub Desktop.
Save waseefakhtar/2729a2b64ec3db3dca8752bc73024ae4 to your computer and use it in GitHub Desktop.
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