[Android] Fix RSIllegalArgumentException
Nicolas Pomepuy
git at videolan.org
Thu May 7 12:17:09 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue May 5 07:38:26 2020 +0200| [75b9e88216d164784d176d83e400b9fef2f4f639] | committer: Nicolas Pomepuy
Fix RSIllegalArgumentException
> https://code.videolan.org/videolan/vlc-android/commit/75b9e88216d164784d176d83e400b9fef2f4f639
---
application/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.kt b/application/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.kt
index 1a0e40828..8301e428f 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.kt
@@ -384,7 +384,7 @@ object UiTools {
//Create the Allocations (in/out) with the Renderscript and the in/out bitmaps
- val allIn = Allocation.createFromBitmap(rs, bitmap)
+ val allIn = Allocation.createFromBitmap(rs, if (bitmap.config == Bitmap.Config.ARGB_8888) bitmap else bitmap.copy(Bitmap.Config.ARGB_8888, true))
val allOut = Allocation.createFromBitmap(rs, outBitmap)
//Set the radius of the blur
More information about the Android
mailing list