Skip to content

Commit ccd5986

Browse files
Always create new ProfileRepository to make sure a proper TokenStorage is used
1 parent 5546feb commit ccd5986

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gravatar-quickeditor/src/main/java/com/gravatar/quickeditor/QuickEditorContainer.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,12 @@ internal class QuickEditorContainer private constructor(
8989
ProfileService()
9090
}
9191

92-
val profileRepository: ProfileRepository by lazy {
93-
ProfileRepository(
92+
val profileRepository: ProfileRepository
93+
get() = ProfileRepository(
9494
profileService = profileService,
9595
tokenStorage = tokenStorage,
9696
dispatcher = Dispatchers.IO,
9797
)
98-
}
9998

10099
val fileUtils: FileUtils by lazy {
101100
FileUtils(context)

0 commit comments

Comments
 (0)