Format code
This commit is contained in:
parent
ffb9db6913
commit
dff30ed5bc
1 changed files with 8 additions and 8 deletions
|
@ -544,14 +544,6 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment {
|
|||
File src = null;
|
||||
File dst = null;
|
||||
|
||||
@Override
|
||||
protected Void doInBackground(Void... params) {
|
||||
if (group != null) {
|
||||
helper.saveFile(group.points, dst);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPreExecute() {
|
||||
showProgressBar();
|
||||
|
@ -565,6 +557,14 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment {
|
|||
dst = new File(dir, src != null ? src.getName() : FavouritesDbHelper.FILE_TO_SAVE);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Void doInBackground(Void... params) {
|
||||
if (group != null) {
|
||||
helper.saveFile(group.points, dst);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPostExecute(Void res) {
|
||||
hideProgressBar();
|
||||
|
|
Loading…
Reference in a new issue