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

Commit 460e996a authored by tibbi's avatar tibbi
Browse files

move the null check at getSharedTheme cursor

parent c4b6502d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -275,8 +275,8 @@ fun Context.getSharedTheme(callback: (sharedTheme: SharedTheme?) -> Unit) {
    Thread {
        val cursor = cursorLoader.loadInBackground()

        cursor.use {
            if (cursor?.moveToFirst() == true) {
        cursor?.use {
            if (cursor.moveToFirst()) {
                val textColor = cursor.getIntValue(COL_TEXT_COLOR)
                val backgroundColor = cursor.getIntValue(COL_BACKGROUND_COLOR)
                val primaryColor = cursor.getIntValue(COL_PRIMARY_COLOR)