Skip to content

Instantly share code, notes, and snippets.

@pavan5208
Created July 14, 2021 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavan5208/86a63a2a80e4b09bd7f5dd1b159971ca to your computer and use it in GitHub Desktop.
Save pavan5208/86a63a2a80e4b09bd7f5dd1b159971ca to your computer and use it in GitHub Desktop.
override suspend fun saveUserLoggedInState(state: Boolean) {
protoDataStore.updateData {store ->
store.toBuilder()
.setIsLoggedIn(state)
.build()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment