Initialize DataStore
This commit is contained in:
parent
ac283f99b3
commit
68baeb0a34
@ -0,0 +1,10 @@
|
|||||||
|
package de.mm20.launcher2.preferences
|
||||||
|
|
||||||
|
import android.content.Context
|
||||||
|
import androidx.datastore.core.DataStore
|
||||||
|
import androidx.datastore.dataStore
|
||||||
|
|
||||||
|
val Context.dataStore: DataStore<Settings> by dataStore(
|
||||||
|
fileName = "settings.pb",
|
||||||
|
serializer = SettingsSerializer
|
||||||
|
)
|
||||||
Loading…
x
Reference in New Issue
Block a user