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

Commit dea50f05 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "More work on rotation animation."

parents 06ba42d5 d6b32b61
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.