• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Revision248c3ab8323c774d213df75ac528d4ab96107fe4 (tree)
Time2016-11-04 05:59:57
AuthorSungsoo <sungsoo@goog...>
Commitergitbuildkicker

Log Message

DO NOT MERGE) ExifInterface: Provide backward compatibility

ExifInterface.saveAttribute() didn't throw UnsupportedOperationException
before. Use IOException instead of UnsupportedOperationException for
backward compatibility.

Bug: 30936376, Bug: 32068647, Bug: 31319086
Change-Id: Iacc7b4d91d49edd7bece8f2e738a633a91025eca
(cherry picked from commit 7ce9243087b04bce719e1f3d10a14b9b26b8ea81)

Change Summary

Incremental Difference

--- a/media/java/android/media/ExifInterface.java
+++ b/media/java/android/media/ExifInterface.java
@@ -1372,8 +1372,7 @@ public class ExifInterface {
13721372 */
13731373 public void saveAttributes() throws IOException {
13741374 if (!mIsSupportedFile) {
1375- throw new UnsupportedOperationException(
1376- "ExifInterface only supports saving attributes on JPEG formats.");
1375+ throw new IOException("ExifInterface only supports saving attributes on JPEG formats.");
13771376 }
13781377 // Keep the thumbnail in memory
13791378 mThumbnailBytes = getThumbnail();