From 69a7bba44cd54c963d5cde11569a6e3cf5565c47 Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 26 Oct 2015 16:52:17 +0100 Subject: [PATCH] align cat order --- .../plus/download/ui/LocalIndexesFragment.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java b/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java index 874587f980..d05b1dba7e 100644 --- a/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java @@ -1,4 +1,4 @@ -package net.osmand.plus.download.ui; +package net.osmand.plus.download.ui; import android.app.Activity; import android.app.AlertDialog; @@ -388,20 +388,20 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement private File getFileToRestore(LocalIndexInfo i) { if (i.isBackupedData()) { File parent = new File(i.getPathToData()).getParentFile(); - if (i.getType() == LocalIndexType.SRTM_DATA) { - parent = getMyApplication().getAppPath(IndexConstants.SRTM_INDEX_DIR); + if (i.getType() == LocalIndexType.MAP_DATA) { + parent = getMyApplication().getAppPath(IndexConstants.MAPS_PATH); } else if (i.getFileName().endsWith(IndexConstants.BINARY_ROAD_MAP_INDEX_EXT)) { parent = getMyApplication().getAppPath(IndexConstants.ROADS_INDEX_DIR); - } else if (i.getType() == LocalIndexType.WIKI_DATA) { - parent = getMyApplication().getAppPath(IndexConstants.WIKI_INDEX_DIR); - } else if (i.getType() == LocalIndexType.MAP_DATA) { - parent = getMyApplication().getAppPath(IndexConstants.MAPS_PATH); } else if (i.getType() == LocalIndexType.TILES_DATA) { parent = getMyApplication().getAppPath(IndexConstants.TILES_INDEX_DIR); - } else if (i.getType() == LocalIndexType.VOICE_DATA) { - parent = getMyApplication().getAppPath(IndexConstants.VOICE_INDEX_DIR); + } else if (i.getType() == LocalIndexType.SRTM_DATA) { + parent = getMyApplication().getAppPath(IndexConstants.SRTM_INDEX_DIR); + } else if (i.getType() == LocalIndexType.WIKI_DATA) { + parent = getMyApplication().getAppPath(IndexConstants.WIKI_INDEX_DIR); } else if (i.getType() == LocalIndexType.TTS_VOICE_DATA) { parent = getMyApplication().getAppPath(IndexConstants.VOICE_INDEX_DIR); + } else if (i.getType() == LocalIndexType.VOICE_DATA) { + parent = getMyApplication().getAppPath(IndexConstants.VOICE_INDEX_DIR); } return new File(parent, i.getFileName()); }