Skip to content

Commit f1a574a

Browse files
authored
fix(ui): Add null check and default config in CircleTransform (#1040)
* Add null check and default config in CircleTransform * update changelog
1 parent 9b05c68 commit f1a574a

File tree

2 files changed

+5
-1
lines changed
  • packages/stream_video_flutter

2 files changed

+5
-1
lines changed

packages/stream_video_flutter/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
🔄 Dependency updates
1010
* Updated `flutter_callkit_incoming` dependency to the latests (2.5.5) version. That version contains Android 14 compatibility fixes for ringing notifications and lock screen handling.
1111

12+
🐞 Fixed
13+
* (Android) CircleTransform Argument type mismatch on Bitmap.Config?
14+
1215
## 0.10.1
1316

1417
🐞 Fixed

packages/stream_video_flutter/android/src/main/kotlin/io/getstream/video/flutter/stream_video_flutter/service/notification/image/CircleTransform.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class CircleTransform : Transformation {
1616
if (squaredBitmap != source) {
1717
source.recycle()
1818
}
19-
val bitmap = Bitmap.createBitmap(size, size, source.config)
19+
val config = source.config ?: Bitmap.Config.ARGB_8888
20+
val bitmap = Bitmap.createBitmap(size, size, config)
2021
val canvas = Canvas(bitmap)
2122
val paint = Paint()
2223
val shader = BitmapShader(

0 commit comments

Comments
 (0)