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

Commit 202d1ec7 authored by Raph Levien's avatar Raph Levien
Browse files

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
parent a5c8d586
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;
                }
            }