Skip to content

Commit

Permalink
Revert.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite committed Nov 12, 2024
1 parent 5c3d8bb commit e6bb59e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class RequestServiceTest : RobolectricTest() {
val request = ImageRequest.Builder(context)
.bitmapConfig(Bitmap.Config.RGB_565)
.build()
val sizeResolver = service.sizeResolver(request)
val sizeResolver = request.defined.sizeResolver ?: service.sizeResolver(request)
val options = service.options(request, sizeResolver, Size(100, 100))
assertEquals(Bitmap.Config.RGB_565, options.bitmapConfig)
}
Expand All @@ -156,7 +156,7 @@ class RequestServiceTest : RobolectricTest() {
val request = ImageRequest.Builder(context)
.defaults(imageLoader.defaults)
.build()
val sizeResolver = service.sizeResolver(request)
val sizeResolver = request.defined.sizeResolver ?: service.sizeResolver(request)
val options = service.options(request, sizeResolver, Size(100, 100))
assertEquals(Bitmap.Config.RGB_565, options.bitmapConfig)
}
Expand All @@ -169,7 +169,7 @@ class RequestServiceTest : RobolectricTest() {
val request = ImageRequest.Builder(context)
.target(imageView)
.build()
val sizeResolver = service.sizeResolver(request)
val sizeResolver = request.defined.sizeResolver ?: service.sizeResolver(request)
val options = service.options(request, sizeResolver, Size(100, 100))
assertEquals(Scale.FILL, options.scale)
}
Expand Down

0 comments on commit e6bb59e

Please sign in to comment.