File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
library/src/com/davemorrissey/labs/subscaleview Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -915,7 +915,7 @@ protected int[] doInBackground(Void... params) {
915915 try {
916916 ExifInterface exifInterface = new ExifInterface (sourceUri .substring (FILE_SCHEME .length () - 1 ));
917917 int orientationAttr = exifInterface .getAttributeInt (ExifInterface .TAG_ORIENTATION , ExifInterface .ORIENTATION_NORMAL );
918- if (orientationAttr == ExifInterface .ORIENTATION_NORMAL ) {
918+ if (orientationAttr == ExifInterface .ORIENTATION_NORMAL || orientationAttr == ExifInterface . ORIENTATION_UNDEFINED ) {
919919 exifOrientation = ORIENTATION_0 ;
920920 } else if (orientationAttr == ExifInterface .ORIENTATION_ROTATE_90 ) {
921921 exifOrientation = ORIENTATION_90 ;
Original file line number Diff line number Diff line change @@ -1110,7 +1110,7 @@ protected int[] doInBackground(Void... params) {
11101110 try {
11111111 ExifInterface exifInterface = new ExifInterface (sourceUri .substring (FILE_SCHEME .length () - 1 ));
11121112 int orientationAttr = exifInterface .getAttributeInt (ExifInterface .TAG_ORIENTATION , ExifInterface .ORIENTATION_NORMAL );
1113- if (orientationAttr == ExifInterface .ORIENTATION_NORMAL ) {
1113+ if (orientationAttr == ExifInterface .ORIENTATION_NORMAL || orientationAttr == ExifInterface . ORIENTATION_UNDEFINED ) {
11141114 exifOrientation = ORIENTATION_0 ;
11151115 } else if (orientationAttr == ExifInterface .ORIENTATION_ROTATE_90 ) {
11161116 exifOrientation = ORIENTATION_90 ;
You can’t perform that action at this time.
0 commit comments