morozov
09/11/2017, 10:40 AMfun decodeImageResource(imageResId: Int): Bitmap? {
try {
val options = BitmapFactory.Options().apply { inScaled = false }
return BitmapFactory.decodeResource(AppResources.appContext?.resources, imageResId, options)
} catch (e: Exception) {
e.log()
}
return null
}