Skip to content

Commit

Permalink
Show map after import on next refresh. See #110
Browse files Browse the repository at this point in the history
Allow Favourites-Address-Details also on empty list.
  • Loading branch information
Starcommander committed May 29, 2020
1 parent 8ea16be commit 1dc8b23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,6 @@ private void startFavAsync(final MyAddressAdapter adapter)
if (!new File(propFile).exists())
{
favourites = new Properties();
return;
}
else if (favourites == null)
{
Expand Down Expand Up @@ -703,7 +702,6 @@ protected void onPostExecute(List<Address> resp)
address.setLatitude(locations[2].getLatitude());
address.setLatitude(locations[2].getLatitude());
showAddressDetails(EditType.EditOnly, address);
return;
}
}
}.execute();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ public boolean unzipImport(final String zipFilePath, final Context appContext)
}
catch (IOException e) { e.printStackTrace(); finishTxt = "Unzip error: "; }
pp.updateTextFinal(finishTxt + mapNameFinal);

MyMap myMap = new MyMap(mapNameFinal);
Variable.getVariable().getRecentDownloadedMaps().add(myMap);
myMap.setStatus(MyMap.DlStatus.Complete);
}});
t.start();
return true;
Expand Down

0 comments on commit 1dc8b23

Please sign in to comment.