fix shadowColor

This commit is contained in:
sonora 2015-02-01 11:11:06 +01:00
parent f12f091c7e
commit bc62ffea57

View file

@ -96,7 +96,7 @@ public class RulerControl extends MapControls {
//rulerDrawable = (isNight ? mapActivity.getResources().getDrawable(R.drawable.ruler_night):mapActivity.getResources().getDrawable(R.drawable.ruler));
rulerDrawable.draw(canvas);
rulerTextPaint.setShadowColor(isNight ? 0xdc262626:Color.WHITE);
int shadowColor = isNight == true ? 0xdc262626 : Color.WHITE);
cacheRulerText.draw(canvas, bounds.left + (bounds.width() - cacheRulerTextLen) / 2, bounds.bottom - 8 * scaleCoefficient,
rulerTextPaint, shadowColor);
}