forked from organicmaps/organicmaps-tmp
[android] Fixed tinting drawable on PreLollipop devices
This commit is contained in:
parent
90f0dd2081
commit
23bdbe9fec
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,8 @@ public class TransitStepView extends View implements MultilineLayoutManager.Sque
|
|||
mTextPaint.setTextSize(textSize);
|
||||
mTextPaint.setColor(textColor);
|
||||
mDrawable = a.getDrawable(R.styleable.TransitStepView_android_drawable);
|
||||
if (mDrawable != null)
|
||||
mDrawable = DrawableCompat.wrap(mDrawable);
|
||||
mStepType = TransitStepType.PEDESTRIAN;
|
||||
a.recycle();
|
||||
}
|
||||
|
@ -89,6 +91,7 @@ public class TransitStepView extends View implements MultilineLayoutManager.Sque
|
|||
mDrawable = getResources().getDrawable(mStepType == TransitStepType.INTERMEDIATE_POINT
|
||||
? getIntermediatePointDrawableId(info.getIntermediateIndex())
|
||||
: mStepType.getDrawable());
|
||||
mDrawable = DrawableCompat.wrap(mDrawable);
|
||||
mBackgroundPaint.setColor(getBackgroundColor(getContext(), info));
|
||||
mText = info.getNumber();
|
||||
invalidate();
|
||||
|
|
Loading…
Add table
Reference in a new issue