summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/TabBar.java
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2014-07-09 15:12:11 -0400
committerLeon Scroggins III <scroggo@google.com>2014-07-09 15:12:11 -0400
commite18ce999848aad1de2d2ee4b7e69547dff002b67 (patch)
tree52c40969f9c74e51aa0072ae9a983fbc41597a72 /src/com/android/browser/TabBar.java
parent489a8d61e62e3da9cb301a0f675485f38eb5c4b8 (diff)
downloadpackages_apps_Browser-e18ce999848aad1de2d2ee4b7e69547dff002b67.zip
packages_apps_Browser-e18ce999848aad1de2d2ee4b7e69547dff002b67.tar.gz
packages_apps_Browser-e18ce999848aad1de2d2ee4b7e69547dff002b67.tar.bz2
Call setShader after setLocalMatrix.
This ensures the Paint is updated. BUG:14315916 Change-Id: If24080eaea48a12e5897ca085d9ce76b34d28f48
Diffstat (limited to 'src/com/android/browser/TabBar.java')
-rw-r--r--src/com/android/browser/TabBar.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/browser/TabBar.java b/src/com/android/browser/TabBar.java
index cf82e01..d6c02f9 100644
--- a/src/com/android/browser/TabBar.java
+++ b/src/com/android/browser/TabBar.java
@@ -398,7 +398,9 @@ public class TabBar extends LinearLayout implements OnClickListener {
// TODO: We should change the matrix/shader only when needed
final Matrix matrix = mSelected ? mActiveMatrix : mInactiveMatrix;
matrix.setTranslate(-left, 0.0f);
- (mSelected ? mActiveShader : mInactiveShader).setLocalMatrix(matrix);
+ final Shader shader = mSelected ? mActiveShader : mInactiveShader;
+ shader.setLocalMatrix(matrix);
+ paint.setShader(shader);
canvas.drawPath(clipPath, paint);
if (isFocused()) {
canvas.drawPath(mFocusPath, mFocusPaint);