Skip to content

Commit

Permalink
explicitly specify non-nullability of SharedPreferences platform type
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian04 committed Aug 12, 2024
1 parent 4eb3d77 commit e15f145
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ data class UserPreferences(
)

class UserPreferencesRepository private constructor(application: Application) {
private val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(application)
private val sharedPreferences: SharedPreferences = PreferenceManager.getDefaultSharedPreferences(application)

private val _userPreferencesFlow = MutableStateFlow(userPreferences)
val userPreferencesFlow: StateFlow<UserPreferences> = _userPreferencesFlow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ fun TroubleshootingPage() {
// - [ ] re-create gadget
//
// TODO: re-enable once this is ready for production
// LabeledCategory("Gadget Actions") {
// GadgetActionButtons()
// }
LabeledCategory("Gadget Actions") {
GadgetActionButtons()
}

LabeledCategory("Debugging Information") {
DebuggingInfoList()
Expand Down

0 comments on commit e15f145

Please sign in to comment.