From c5c74e61be49853491eecb88fdc3aee92f005972 Mon Sep 17 00:00:00 2001 From: Ivan Chiang Date: Wed, 30 Oct 2019 15:09:09 +0800 Subject: Update java doc for correct rotation of thumbnail from Q Before Q, the thumbnail has wrong rotation, the developers need to rotate it to correct rotation manually. As of Q, we provide the correct rotation of the thumbnail. Test: m -j Bug: 142601201 Change-Id: I9c472f47b2bd0c3191ff55d1eb8d21303437dedd --- core/java/android/provider/MediaStore.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/java/android/provider/MediaStore.java b/core/java/android/provider/MediaStore.java index a1333df13820..b65bb541250b 100644 --- a/core/java/android/provider/MediaStore.java +++ b/core/java/android/provider/MediaStore.java @@ -1904,6 +1904,10 @@ public final class MediaStore { * generated. Callers are responsible for their own in-memory * caching of returned values. * + * As of {@link android.os.Build.VERSION_CODES#Q}, this output + * of the thumbnail has correct rotation, don't need to rotate + * it again. + * * @param imageId the image item to obtain a thumbnail for. * @param kind optimal thumbnail size desired. * @return decoded thumbnail, or {@code null} if problem was @@ -1946,6 +1950,10 @@ public final class MediaStore { * generated. Callers are responsible for their own in-memory * caching of returned values. * + * As of {@link android.os.Build.VERSION_CODES#Q}, this output + * of the thumbnail has correct rotation, don't need to rotate + * it again. + * * @param imageId the image item to obtain a thumbnail for. * @param kind optimal thumbnail size desired. * @return decoded thumbnail, or {@code null} if problem was @@ -2000,6 +2008,9 @@ public final class MediaStore { * {@link ContentResolver#openFileDescriptor(Uri, String)} to gain * access. * + * As of {@link android.os.Build.VERSION_CODES#Q}, this thumbnail + * has correct rotation, don't need to rotate it again. + * * @deprecated Apps may not have filesystem permissions to directly * access this path. Instead of trying to open this path * directly, apps should use -- cgit v1.2.3-59-g8ed1b