properly fetch the app icon color at content provider

This commit is contained in:
tibbi 2018-04-27 20:59:15 +02:00
parent f58b168f45
commit 252422f0b1
2 changed files with 4 additions and 2 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 16
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '3.19.22'
propVersionName = '3.19.23'
kotlin_version = '1.2.40'
support_libs = '27.1.1'
}

View file

@ -29,6 +29,7 @@ import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.simplemobiletools.commons.R
import com.simplemobiletools.commons.helpers.*
import com.simplemobiletools.commons.helpers.MyContentProvider.Companion.COL_APP_ICON_COLOR
import com.simplemobiletools.commons.helpers.MyContentProvider.Companion.COL_BACKGROUND_COLOR
import com.simplemobiletools.commons.helpers.MyContentProvider.Companion.COL_LAST_UPDATED_TS
import com.simplemobiletools.commons.helpers.MyContentProvider.Companion.COL_PRIMARY_COLOR
@ -331,8 +332,9 @@ fun Context.getSharedThemeSync(cursorLoader: CursorLoader): SharedTheme? {
val textColor = cursor.getIntValue(COL_TEXT_COLOR)
val backgroundColor = cursor.getIntValue(COL_BACKGROUND_COLOR)
val primaryColor = cursor.getIntValue(COL_PRIMARY_COLOR)
val appIconColor = cursor.getIntValue(COL_APP_ICON_COLOR)
val lastUpdatedTS = cursor.getIntValue(COL_LAST_UPDATED_TS)
return SharedTheme(textColor, backgroundColor, primaryColor, lastUpdatedTS)
return SharedTheme(textColor, backgroundColor, primaryColor, appIconColor, lastUpdatedTS)
}
}
return null