Merge pull request #7907 from osmandapp/Fix_7866

Fix #7866
This commit is contained in:
max-klaus 2019-11-12 18:57:38 +03:00 committed by GitHub
commit c8e6a9d270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -11,6 +11,7 @@
Thx - Hardy
-->
<string name="clear_confirmation_msg">Clear %1$s?</string>
<string name="shared_string_revert">Revert</string>
<string name="track_saved">Track saved</string>
<string name="empty_filename">File name is empty</string>

View file

@ -234,7 +234,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement
String fn = FileNameTranslationHelper.getFileName(getActivity(),
getMyApplication().getResourceManager().getOsmandRegions(),
info.getFileName());
confirm.setMessage(getString(R.string.delete_confirmation_msg, fn));
confirm.setMessage(getString(R.string.clear_confirmation_msg, fn));
confirm.show();
} else if (resId == R.string.local_index_mi_restore) {
new LocalIndexOperationTask(getDownloadActivity(), listAdapter, LocalIndexOperationTask.RESTORE_OPERATION).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, info);