Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5c74e61 authored by Ivan Chiang's avatar Ivan Chiang
Browse files

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
parent 2db814af
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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