Fixed issue #4447
This commit is contained in:
parent
db5d79fa2d
commit
2f43745cad
1 changed files with 2 additions and 2 deletions
|
@ -467,14 +467,14 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement
|
||||||
if (operation == DELETE_OPERATION) {
|
if (operation == DELETE_OPERATION) {
|
||||||
File f = new File(info.getPathToData());
|
File f = new File(info.getPathToData());
|
||||||
successfull = Algorithms.removeAllFiles(f);
|
successfull = Algorithms.removeAllFiles(f);
|
||||||
if (InAppHelper.isSubscribedToLiveUpdates()) {
|
if (InAppHelper.isSubscribedToLiveUpdates()) {
|
||||||
String fileNameWithoutExtension =
|
String fileNameWithoutExtension =
|
||||||
Algorithms.getFileNameWithoutExtension(f);
|
Algorithms.getFileNameWithoutExtension(f);
|
||||||
IncrementalChangesManager changesManager =
|
IncrementalChangesManager changesManager =
|
||||||
getMyApplication().getResourceManager().getChangesManager();
|
getMyApplication().getResourceManager().getChangesManager();
|
||||||
changesManager.deleteUpdates(fileNameWithoutExtension);
|
changesManager.deleteUpdates(fileNameWithoutExtension);
|
||||||
}
|
}
|
||||||
if (successfull) {
|
if (successfull) {
|
||||||
getMyApplication().getResourceManager().closeFile(info.getFileName());
|
getMyApplication().getResourceManager().closeFile(info.getFileName());
|
||||||
}
|
}
|
||||||
} else if (operation == RESTORE_OPERATION) {
|
} else if (operation == RESTORE_OPERATION) {
|
||||||
|
|
Loading…
Reference in a new issue