disallow using hardware bitmap on Android 8
This commit is contained in:
parent
488f163806
commit
b7c0326638
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
|
||||||
val size = Point()
|
val size = Point()
|
||||||
activity.windowManager.defaultDisplay.getSize(size)
|
activity.windowManager.defaultDisplay.getSize(size)
|
||||||
val options = RequestOptions()
|
val options = RequestOptions()
|
||||||
.format(DecodeFormat.PREFER_ARGB_8888)
|
.format(DecodeFormat.PREFER_ARGB_8888_DISALLOW_HARDWARE)
|
||||||
.fitCenter()
|
.fitCenter()
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue