Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationInlineImageResolver.java +3 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,9 @@ public class NotificationInlineImageResolver implements ImageResolver { */ Drawable resolveImage(Uri uri) throws IOException { BitmapDrawable image = resolveImageInternal(uri); if (image == null || image.getBitmap() == null) { throw new IOException("resolveImageInternal returned null for uri: " + uri); } Bitmap bitmap = image.getBitmap(); image.setBitmap(Icon.scaleDownIfNecessary(bitmap, mMaxImageWidth, mMaxImageHeight)); return image; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationInlineImageResolver.java +3 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,9 @@ public class NotificationInlineImageResolver implements ImageResolver { */ Drawable resolveImage(Uri uri) throws IOException { BitmapDrawable image = resolveImageInternal(uri); if (image == null || image.getBitmap() == null) { throw new IOException("resolveImageInternal returned null for uri: " + uri); } Bitmap bitmap = image.getBitmap(); image.setBitmap(Icon.scaleDownIfNecessary(bitmap, mMaxImageWidth, mMaxImageHeight)); return image; Loading