Created
June 1, 2019 23:05
-
-
Save Ikhiloya/a47b41c38d459eda3d749b8406ef1b49 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| public boolean onOptionsItemSelected(MenuItem item) { | |
| switch (item.getItemId()) { | |
| case R.id.search: | |
| onSearchCalled(); | |
| return true; | |
| case android.R.id.home: | |
| finish(); | |
| return true; | |
| default: | |
| return false; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment