-
-
Save rohitsat13/edc2bcaec09d55e37c45a2be4d3afaf6 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
/* Copyright 2021 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 */ | |
suspend fun setShowCompleted(newShowCompleted: Boolean) { | |
// This will leave the sortOrder value untouched: | |
context.dataStore.updateData { it.copy(newShowCompleted = showCompleted) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment