From 805584b0c9b66bebb86093e84de9861015f5fc7b Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Mon, 4 Sep 2017 16:35:22 +0300 Subject: [PATCH 1/2] Backup favourites --- OsmAnd/src/net/osmand/plus/OsmandBackupAgent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/OsmandBackupAgent.java b/OsmAnd/src/net/osmand/plus/OsmandBackupAgent.java index 1b6cee8980..0fedebce56 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandBackupAgent.java +++ b/OsmAnd/src/net/osmand/plus/OsmandBackupAgent.java @@ -25,7 +25,7 @@ public class OsmandBackupAgent extends BackupAgentHelper { SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, prefs); addHelper("osmand.settings", helper); - FileBackupHelper fileBackupHelper = new FileBackupHelper(this, FavouritesDbHelper.FAVOURITE_DB_NAME); + FileBackupHelper fileBackupHelper = new FileBackupHelper(this, FavouritesDbHelper.FILE_TO_SAVE); addHelper("osmand.favorites", fileBackupHelper); } } From fe261843cacbfff72530ecae0d18f0760f176dc2 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Tue, 5 Sep 2017 15:34:16 +0300 Subject: [PATCH 2/2] Restore favourites after reinstall --- OsmAnd/src/net/osmand/plus/OsmandBackupAgent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/OsmandBackupAgent.java b/OsmAnd/src/net/osmand/plus/OsmandBackupAgent.java index 0fedebce56..32b3b91122 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandBackupAgent.java +++ b/OsmAnd/src/net/osmand/plus/OsmandBackupAgent.java @@ -25,7 +25,7 @@ public class OsmandBackupAgent extends BackupAgentHelper { SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, prefs); addHelper("osmand.settings", helper); - FileBackupHelper fileBackupHelper = new FileBackupHelper(this, FavouritesDbHelper.FILE_TO_SAVE); - addHelper("osmand.favorites", fileBackupHelper); + FileBackupHelper fileBackupHelper = new FileBackupHelper(this, FavouritesDbHelper.FILE_TO_BACKUP); + addHelper(FavouritesDbHelper.FILE_TO_BACKUP, fileBackupHelper); } }