fux build

This commit is contained in:
sonora 2015-02-01 11:30:24 +01:00
parent d8bb5530d8
commit f3d4a641f7

View file

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