Loading media/java/android/media/ThumbnailUtils.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -83,7 +83,7 @@ public class ThumbnailUtils { * * * @param filePath the path of image file * @param filePath the path of image file * @param kind could be MINI_KIND or MICRO_KIND * @param kind could be MINI_KIND or MICRO_KIND * @return Bitmap * @return Bitmap, or null on failures * * * @hide This method is only used by media framework and media provider internally. * @hide This method is only used by media framework and media provider internally. */ */ Loading Loading @@ -123,6 +123,8 @@ public class ThumbnailUtils { bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options); bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options); } catch (IOException ex) { } catch (IOException ex) { Log.e(TAG, "", ex); Log.e(TAG, "", ex); } catch (OutOfMemoryError oom) { Log.e(TAG, "Unable to decode file " + filePath + ". OutOfMemoryError.", oom); } } } } Loading Loading
media/java/android/media/ThumbnailUtils.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -83,7 +83,7 @@ public class ThumbnailUtils { * * * @param filePath the path of image file * @param filePath the path of image file * @param kind could be MINI_KIND or MICRO_KIND * @param kind could be MINI_KIND or MICRO_KIND * @return Bitmap * @return Bitmap, or null on failures * * * @hide This method is only used by media framework and media provider internally. * @hide This method is only used by media framework and media provider internally. */ */ Loading Loading @@ -123,6 +123,8 @@ public class ThumbnailUtils { bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options); bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options); } catch (IOException ex) { } catch (IOException ex) { Log.e(TAG, "", ex); Log.e(TAG, "", ex); } catch (OutOfMemoryError oom) { Log.e(TAG, "Unable to decode file " + filePath + ". OutOfMemoryError.", oom); } } } } Loading