Przeglądaj źródła

原生拍照也受横竖屏影响

詹子聪 5 lat temu
rodzic
commit
c6ca0b5e01

+ 1 - 1
app/src/main/java/com/miekir/ocr/ui/OperationPresenter.java

@@ -75,7 +75,7 @@ public class OperationPresenter extends BasePresenter<IOperationView> {
                     }
                 } else {
                     Bitmap rotatedBitmap = viewedBitmap;
-                    if (!isFromRawCamera && isLandscape) {
+                    if (isLandscape) {
                         rotatedBitmap = ImageUtil.rotateBitmap(viewedBitmap, -90);
                         viewedBitmap.recycle();
                     }