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

Unverified Commit 629c9853 authored by Cosmin Tanislav's avatar Cosmin Tanislav Committed by Michael Bestas
Browse files

DisplayCutout: fully animate camera protection

Animating from / until 0.5 scale makes the animation seem choppy,
do a full animation to make it look nicer.

Change-Id: I89001fc8baf480c9d16989a19174cf3bd8734966
parent d847b0af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -300,7 +300,7 @@ open class DisplayCutoutBaseView : View, RegionInterceptableView {
    }

    companion object {
        const val HIDDEN_CAMERA_PROTECTION_SCALE = 0.5f
        const val HIDDEN_CAMERA_PROTECTION_SCALE = 0.0f

        @JvmStatic protected fun transformPhysicalToLogicalCoordinates(
            @Surface.Rotation rotation: Int,