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

Commit 73f376cf authored by Santosh Madhava's avatar Santosh Madhava
Browse files

Fix for issue 3370007 Overlay transparency in Java

Change-Id: I68be6f56ad58672a771485a028fc0cd8a0514e8a
parent 246bf85a
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -2105,7 +2105,6 @@ class MediaArtistNativeHelper {
                //For image get the scaled height. Aspect ratio would remain the same
                //For image get the scaled height. Aspect ratio would remain the same
                mediaItemHeight = ((MediaImageItem)overlay.getMediaItem()).getScaledHeight();
                mediaItemHeight = ((MediaImageItem)overlay.getMediaItem()).getScaledHeight();
                aspectRatio = overlay.getMediaItem().getAspectRatio();
                aspectRatio = overlay.getMediaItem().getAspectRatio();
                effectSettings.framingResize = false; //since the image can be of odd size.
            }
            }
        } else {
        } else {
            aspectRatio = overlay.getMediaItem().getAspectRatio();
            aspectRatio = overlay.getMediaItem().getAspectRatio();
+5 −1
Original line number Original line Diff line number Diff line
@@ -235,7 +235,7 @@ public class OverlayFrame extends Overlay {
         mOFWidth = width;
         mOFWidth = width;
     }
     }
    /**
    /**
     * Delete the overlay file
     * Delete the overlay files
     */
     */
    void invalidate() {
    void invalidate() {
        if (mFilename != null) {
        if (mFilename != null) {
@@ -244,5 +244,9 @@ public class OverlayFrame extends Overlay {
            mBitmap.recycle();
            mBitmap.recycle();
            mBitmap = null;
            mBitmap = null;
        }
        }
        if (mBitmapFileName != null) {
            new File(mBitmapFileName).delete();
            mBitmapFileName = null;
        }
    }
    }
}
}