Fix bricks bug

This commit is contained in:
Hardy 2017-03-18 15:36:05 -07:00 committed by GitHub
parent 8be7da0dd4
commit 84ecf92bd3

View file

@ -900,7 +900,11 @@ public class GpxUiHelper {
OsmandSettings settings = ctx.getSettings();
boolean light = settings.isLightContent();
mChart.setHardwareAccelerationEnabled(false);
if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR2) {
mChart.setHardwareAccelerationEnabled(false);
} else {
mChart.setHardwareAccelerationEnabled(true);
}
mChart.setTouchEnabled(true);
mChart.setDragEnabled(true);
mChart.setScaleEnabled(true);