Fix issue with 1.7.3

This commit is contained in:
vshcherb 2014-04-01 19:24:41 +02:00
parent 86ed84b531
commit bd41be16e0

View file

@ -70,9 +70,9 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
}
initUI(loc.getLatitude(), loc.getLongitude());
if(savedInstanceState != null && savedInstanceState.containsKey(SEARCH_LAT) && savedInstanceState.containsKey(SEARCH_LON)) {
String lat = savedInstanceState.getString(SEARCH_LAT, "");
String lon = savedInstanceState.getString(SEARCH_LON, "");
if(lat.length() > 0 && lon.length() > 0) {
String lat = savedInstanceState.getString(SEARCH_LAT);
String lon = savedInstanceState.getString(SEARCH_LON);
if(lat != null && lon != null && lat.length() > 0 && lon.length() > 0) {
((Spinner)view.findViewById(R.id.Format)).setSelection(savedInstanceState.getInt(SELECTION, 0));
currentFormat = savedInstanceState.getInt(SELECTION, 0);
((TextView)view.findViewById(R.id.LatitudeEdit)).setText(lat);