Use dependency injection to access dataStore, not the context.dataStore extension
This commit is contained in:
@@ -10,7 +10,7 @@ import de.mm20.launcher2.preferences.migrations.FactorySettingsMigration
|
||||
|
||||
typealias LauncherDataStore = DataStore<Settings>
|
||||
|
||||
val Context.dataStore: LauncherDataStore by dataStore(
|
||||
internal val Context.dataStore: LauncherDataStore by dataStore(
|
||||
fileName = "settings.pb",
|
||||
serializer = SettingsSerializer,
|
||||
produceMigrations = {
|
||||
|
||||
Reference in New Issue
Block a user