Fix text shadow attributes in textAppearance

The various text shadow attributes were not being properly applied
because they were being retrieved from the wrong TypedArray.

This is the proper fix for bug 13525033 Shadow* attributes in a style
not being applied in textAppearance.

Change-Id: I57a8f498bf6059c5c5c74c1072edb277a24ea053
This commit is contained in:
Raph Levien
2014-04-14 11:20:22 -07:00
parent a5c8d586f6
commit 202d1ec753

View File

@ -710,19 +710,19 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
break;
case com.android.internal.R.styleable.TextAppearance_shadowColor:
shadowcolor = a.getInt(attr, 0);
shadowcolor = appearance.getInt(attr, 0);
break;
case com.android.internal.R.styleable.TextAppearance_shadowDx:
dx = a.getFloat(attr, 0);
dx = appearance.getFloat(attr, 0);
break;
case com.android.internal.R.styleable.TextAppearance_shadowDy:
dy = a.getFloat(attr, 0);
dy = appearance.getFloat(attr, 0);
break;
case com.android.internal.R.styleable.TextAppearance_shadowRadius:
r = a.getFloat(attr, 0);
r = appearance.getFloat(attr, 0);
break;
}
}