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

Commit d6b32b61 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

More work on rotation animation.

Change-Id: Ib8206db98b68cb1e0b16e4c55d949e80ff31bd9f
parent 4108fbc2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -24,12 +24,14 @@
            android:pivotX="50%" android:pivotY="50%"
            android:interpolator="@interpolator/accelerate_decelerate"
            android:fillEnabled="true"
            android:fillBefore="false" android:fillAfter="true"
            android:fillBefore="true" android:fillAfter="true"
            android:duration="@android:integer/config_shortAnimTime"/>
    <scale android:fromXScale="100%" android:toXScale="100%p"
            android:fromYScale="100%" android:toYScale="100%p"
            android:pivotX="50%" android:pivotY="50%"
            android:interpolator="@interpolator/accelerate_decelerate"
            android:fillEnabled="true"
            android:fillBefore="true" android:fillAfter="true"
            android:duration="@android:integer/config_mediumAnimTime" />
    <alpha android:fromAlpha="1.0" android:toAlpha="0"
            android:interpolator="@interpolator/accelerate_decelerate"
+8 −0
Original line number Diff line number Diff line
@@ -157,6 +157,14 @@ public class BlackFrame {
        }
    }

    public void setAlpha(float alpha) {
        for (int i=0; i<mBlackSurfaces.length; i++) {
            if (mBlackSurfaces[i] != null) {
                mBlackSurfaces[i].surface.setAlpha(alpha);
            }
        }
    }

    public void clearMatrix() {
        for (int i=0; i<mBlackSurfaces.length; i++) {
            if (mBlackSurfaces[i] != null) {
+220 −106

File changed.

Preview size limit exceeded, changes collapsed.