Skip to content
Snippets Groups Projects
Commit 25b7c4b1 authored by Kamal Bramwell's avatar Kamal Bramwell
Browse files

Created Crust singleton

parent 9d9fbdcc
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ class Crust private constructor(
backupService: BackupService,
preferences: BackupPreferencesRepository,
crustApi: CrustDataSource
): Crust = instance ?: Crust(backupService, preferences, crustApi)
): Crust = instance ?: Crust(backupService, preferences, crustApi).also { instance = it }
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment