am db978b1f: am ed48c808: Merge change 22920 into eclair

Merge commit 'db978b1f8ddf2afb14a4ed795895c8849fecd13f'

* commit 'db978b1f8ddf2afb14a4ed795895c8849fecd13f':
  Change fade to use a gradient from opaque color to transparent color.
This commit is contained in:
Romain Guy
2009-08-27 10:48:13 -07:00
committed by Android Git Automerger

View File

@@ -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)