From 41cf25f7f8be303c0e35d2e7deaab96ea36f9105 Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 11 Jun 2015 23:00:42 +0200 Subject: [PATCH] fix fav-backup naming --- OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java index 08c614aa5b..97de640beb 100644 --- a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java @@ -356,10 +356,11 @@ public class FavouritesDbHelper { fld.mkdirs(); } int back = 1; + DecimalFormat formatter = new DecimalFormat("00"); File firstModified = null; long firstModifiedMin = System.currentTimeMillis(); while(back <= BACKUP_CNT) { - File bak = new File(fld, BACKUP_FOLDER +"_" + back +".gpx.bz2"); + File bak = new File(fld, "favourites_backup_" + formatter.format(back) +".gpx.bz2"); if (!bak.exists()) { return bak; } else if (bak.lastModified() < firstModifiedMin) {