-
-
Save illuzor/4a0c46cbacfb32cbef0570d2b5ba86df 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 onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { | |
super.onCreateOptionsMenu(menu, inflater) | |
inflater.inflate(R.menu.menu_wallpaper, menu) | |
} | |
override fun onOptionsItemSelected(item: MenuItem): Boolean { | |
if (!loaded && item.itemId != android.R.id.home) { | |
toast(R.string.not_loaded_yet) | |
} else { | |
when (item.itemId) { | |
R.id.menu_item_set_wallpaper -> setWallpaper() | |
R.id.menu_item_share_image -> shareWallpaper() | |
R.id.menu_item_save_image -> checkPermissionForImageSave() | |
} | |
} | |
return super.onOptionsItemSelected(item) | |
} | |
private fun setWallpaper() { | |
} | |
private fun shareWallpaper() { | |
} | |
private fun checkPermissionForImageSave() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment