Created
September 11, 2018 18:17
-
-
Save adrianhall/5b6ff4fcccd89da523ca3f0c429c9ddc 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
| /** | |
| * Update the menu for signed in/out status | |
| */ | |
| private fun updateNavigationDrawer(isSignedIn: Boolean = false) { | |
| val loginItem = nav_view.menu.findItem(R.id.main_drawer_login) | |
| if (!isSignedIn) { | |
| loginItem.title = resources.getString(R.string.nav_signin) | |
| } else { | |
| loginItem.title = resources.getString(R.string.nav_signout) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment