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

Commit ed48c808 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 22920 into eclair

* changes:
  Change fade to use a gradient from opaque color to transparent color.
parents 650b872c e55e1a78
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8742,7 +8742,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
                mLastColor = color;
                color |= 0xFF000000;

                shader = new LinearGradient(0, 0, 0, 1, color, 0, Shader.TileMode.CLAMP);
                shader = new LinearGradient(0, 0, 0, 1, color | 0xFF000000,
                        color & 0x00FFFFFF, Shader.TileMode.CLAMP);

                paint.setShader(shader);
                // Restore the default transfer mode (src_over)