disallow using hardware bitmap on Android 8

This commit is contained in:
tibbi 2017-12-01 18:36:08 +01:00
parent 488f163806
commit b7c0326638
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
val size = Point()
activity.windowManager.defaultDisplay.getSize(size)
val options = RequestOptions()
.format(DecodeFormat.PREFER_ARGB_8888)
.format(DecodeFormat.PREFER_ARGB_8888_DISALLOW_HARDWARE)
.fitCenter()
try {