Remove unnecessary changes

This commit is contained in:
Chumva 2019-07-13 13:08:28 +03:00
parent 8680103926
commit c51df90e05
2 changed files with 6 additions and 6 deletions

View file

@ -12,13 +12,13 @@ import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat; import android.support.v4.content.ContextCompat;
import net.osmand.AndroidUtils; import net.osmand.AndroidUtils;
import net.osmand.GPXUtilities;
import net.osmand.GPXUtilities.GPXFile;
import net.osmand.GPXUtilities.TrkSegment;
import net.osmand.data.LatLon; import net.osmand.data.LatLon;
import net.osmand.data.QuadRect; import net.osmand.data.QuadRect;
import net.osmand.data.RotatedTileBox; import net.osmand.data.RotatedTileBox;
import net.osmand.plus.GPXDatabase.GpxDataItem; import net.osmand.plus.GPXDatabase.GpxDataItem;
import net.osmand.GPXUtilities;
import net.osmand.GPXUtilities.GPXFile;
import net.osmand.GPXUtilities.TrkSegment;
import net.osmand.plus.GpxSelectionHelper; import net.osmand.plus.GpxSelectionHelper;
import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandApplication;
import net.osmand.plus.R; import net.osmand.plus.R;
@ -246,8 +246,8 @@ public class TrackBitmapDrawer {
} }
} }
paint.setColor(color == 0 ? trackColor : color); paint.setColor(color == 0 ? trackColor : color);
if (ts.renderer instanceof Renderable.RenderableSegment) { if(ts.renderer instanceof Renderable.RenderableSegment) {
((Renderable.RenderableSegment) ts.renderer).drawSegment(tileBox.getZoom(), paint, canvas, tileBox); ((Renderable.RenderableSegment)ts.renderer).drawSegment(tileBox.getZoom(), paint, canvas, tileBox);
} }
} }
} }

View file

@ -15,7 +15,7 @@ import java.util.concurrent.Executors;
public class Renderable { public class Renderable {
public static final Executor THREAD_POOL_EXECUTOR = Executors.newFixedThreadPool(5); private static final Executor THREAD_POOL_EXECUTOR = Executors.newFixedThreadPool(5);
public static abstract class RenderableSegment { public static abstract class RenderableSegment {