Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 893e1642 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

resolve preference manager editor warning

parent 7c14deb2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -149,10 +149,11 @@ class LoginDataStore @Inject constructor(
    fun isGplaySelected() = preferenceManager.getBoolean(PREFERENCE_SHOW_GPLAY, true)

    fun setSource(source: String, value: Boolean) {
        preferenceManager.edit().run {
        val editor = preferenceManager.edit()
        editor.run {
            this.putBoolean(source, value)
            apply()
        }
        editor.apply()
    }

    // Clear data