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

Commit f456997a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make pattern animation a little faster"

parents 03b8c0f4 f84fa005
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ public class LockPatternView extends View {
    private static final int ASPECT_LOCK_HEIGHT = 2; // Fixed height; width will be minimum of (w,h)

    private static final boolean PROFILE_DRAWING = false;
    private static final float LINE_FADE_ALPHA_MULTIPLIER = 3.5f;
    private final CellState[][] mCellStates;

    private final int mDotSize;
@@ -1170,9 +1171,9 @@ public class LockPatternView extends View {
                float centerX = getCenterXForColumn(cell.column);
                float centerY = getCenterYForRow(cell.row);
                if (i != 0) {
                   // Set this line segment to slowly fade over the next second.
                   // Set this line segment to fade away animated.
                   int lineFadeVal = (int) Math.min((elapsedRealtime -
                           mLineFadeStart[i])/2f, 255f);
                           mLineFadeStart[i]) * LINE_FADE_ALPHA_MULTIPLIER, 255f);

                    CellState state = mCellStates[cell.row][cell.column];
                    currentPath.rewind();