diff --git a/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java b/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java index 865008c68a..9473e93d06 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java +++ b/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java @@ -381,7 +381,7 @@ public class SavingTrackHelper extends SQLiteOpenHelper { it.remove(); } } - if (file.tracks.size() == 0) { + if (file.isEmpty()) { datesToRemove.add(entry.getKey()); } }