This is because LruBitmapPool can recycle Bitmaps with no gainmaps and a different colorspace.
Since gainmaps can't be reused between bitmaps, and must be set manually, either we have to do a BitmapPool API change to handle that, or all callers of BitmapPool have to handle it explicitly, or we start migrating from BitmapPool, since it is arguably not needed in Android M+ since the Android framework takes care of Bitmap reuse anyway.
This is because LruBitmapPool can recycle Bitmaps with no gainmaps and a different colorspace.
Since gainmaps can't be reused between bitmaps, and must be set manually, either we have to do a BitmapPool API change to handle that, or all callers of BitmapPool have to handle it explicitly, or we start migrating from BitmapPool, since it is arguably not needed in Android M+ since the Android framework takes care of Bitmap reuse anyway.