Skip to content

Commit

Permalink
Only require hardware bitmaps on P+ in LoadResourcesWithDownsamplerTe…
Browse files Browse the repository at this point in the history
…st. (bumptech#5116)
  • Loading branch information
sjudd committed Apr 4, 2023
1 parent fe212a6 commit ebad66b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public void loadTransparentGifResource_withNoOtherLoaders_decodesResource() {
public void loadTransparentGifResource_asHardware_withNoOtherLoaders_decodesResource()
throws InterruptedException {
assumeTrue(
"Hardware Bitmaps are only supported on O+",
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O);
"Hardware Bitmaps are only supported on P+",
Build.VERSION.SDK_INT >= Build.VERSION_CODES.P);
// enableHardwareBitmaps must be called on the main thread.
final CountDownLatch latch = new CountDownLatch(1);
Util.postOnUiThread(
Expand Down Expand Up @@ -191,8 +191,8 @@ public void loadOpaqueGifResource_asBytes_decodesResource() {
@Test
public void loadOpaqueGifResource_asHardware_withNoOtherLoaders_decodesResource() {
assumeTrue(
"Hardware Bitmaps are only supported on O+",
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O);
"Hardware Bitmaps are only supported on P+",
Build.VERSION.SDK_INT >= Build.VERSION_CODES.P);

Glide.get(context)
.getRegistry()
Expand Down

0 comments on commit ebad66b

Please sign in to comment.