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

Commit f667354d authored by Jay Aliomer's avatar Jay Aliomer
Browse files

Fix flag manager crash

Bug: 196602427
Test: manual
Change-Id: I2690096429bc784b45e4e0c6cc32fb2e06becfb4
parent 7860a015
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -92,9 +92,9 @@ class FlagManager constructor(

    /** Returns the stored value or null if not set.  */
    fun isEnabled(id: Int): Boolean? {
        val data: String = Settings.Secure.getString(
        val data: String? = Settings.Secure.getString(
            context.contentResolver, keyToSettingsPrefix(id))
        if (data.isEmpty()) {
        if (data == null || data?.isEmpty()) {
            return null
        }
        val json: JSONObject