diff --git a/OCH/mogo-och-bus-passenger/src/m2/java/com/mogo/och/bus/passenger/ui/widget/video/AdvanceImageView.kt b/OCH/mogo-och-bus-passenger/src/m2/java/com/mogo/och/bus/passenger/ui/widget/video/AdvanceImageView.kt index 12d2a2b3ac..cf0d030989 100644 --- a/OCH/mogo-och-bus-passenger/src/m2/java/com/mogo/och/bus/passenger/ui/widget/video/AdvanceImageView.kt +++ b/OCH/mogo-och-bus-passenger/src/m2/java/com/mogo/och/bus/passenger/ui/widget/video/AdvanceImageView.kt @@ -32,9 +32,10 @@ class AdvanceImageView @JvmOverloads constructor( @SuppressLint("CheckResult") fun setImagePath(path: String){ imageView?.setImageResource(R.drawable.m2_p_video_holder) - imageView?.let { Glide.with(context).load(path) + imageView?.let { Glide.with(context).asBitmap().load(path) .apply( - RequestOptions().placeholder(R.drawable.m2_p_video_holder) + RequestOptions().useUnlimitedSourceGeneratorsPool(true) + .placeholder(R.drawable.m2_p_video_holder) .error(R.drawable.m2_p_video_holder) .fallback(R.drawable.m2_p_video_holder) .centerCrop() diff --git a/OCH/mogo-och-bus-passenger/src/m2/res/drawable-nodpi/m2_p_video_holder.png b/OCH/mogo-och-bus-passenger/src/m2/res/drawable-nodpi/m2_p_video_holder.png index 99bfcefc6f..ef73c3f299 100644 Binary files a/OCH/mogo-och-bus-passenger/src/m2/res/drawable-nodpi/m2_p_video_holder.png and b/OCH/mogo-och-bus-passenger/src/m2/res/drawable-nodpi/m2_p_video_holder.png differ diff --git a/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/video/VideoPlayerView.kt b/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/video/VideoPlayerView.kt index 7a7965c37d..272e483d38 100644 --- a/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/video/VideoPlayerView.kt +++ b/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/video/VideoPlayerView.kt @@ -471,9 +471,10 @@ class AdvanceImageView @JvmOverloads constructor( fun setImagePath(path: String) { imageView?.setImageResource(R.drawable.video_holder) imageView?.let { - Glide.with(context).load(path) + Glide.with(context).asBitmap().load(path) .apply( - RequestOptions().placeholder(R.drawable.video_holder) + RequestOptions().useUnlimitedSourceGeneratorsPool(true) + .placeholder(R.drawable.video_holder) .error(R.drawable.video_holder) .fallback(R.drawable.video_holder) .centerCrop()