From f13680dc5ca55401484ea23fc9493a938cb8ae73 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 23 Jan 2012 23:31:40 +0000 Subject: Fixed an issue causing the favourites dialog to be blank after device rotation. --- src/net/cbaines/suma/FavouriteDialog.java | 2 ++ src/net/cbaines/suma/SouthamptonUniversityMapActivity.java | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/net/cbaines/suma/FavouriteDialog.java b/src/net/cbaines/suma/FavouriteDialog.java index 53a9862..e95ead2 100644 --- a/src/net/cbaines/suma/FavouriteDialog.java +++ b/src/net/cbaines/suma/FavouriteDialog.java @@ -60,6 +60,8 @@ public class FavouriteDialog extends Dialog { favouriteItems = new ArrayList(); listItems = (ListView) findViewById(R.id.favouriteListItems); + + refresh(); } public void refresh() { diff --git a/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java b/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java index 5b134c6..f183542 100644 --- a/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java +++ b/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java @@ -29,6 +29,7 @@ import java.util.HashMap; import org.osmdroid.DefaultResourceProxyImpl; import org.osmdroid.ResourceProxy; +import org.osmdroid.tileprovider.MapTileProviderArray; import org.osmdroid.tileprovider.tilesource.TileSourceFactory; import org.osmdroid.util.GeoPoint; import org.osmdroid.views.MapController; @@ -190,11 +191,11 @@ public class SouthamptonUniversityMapActivity extends OrmLiteBaseActivity