initialize var

This commit is contained in:
sonora 2014-12-31 00:02:00 +01:00
parent dc7bfea956
commit 2652230451

View file

@ -166,7 +166,7 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
@Override @Override
public void onResume() { public void onResume() {
super.onResume(); super.onResume();
LatLon location; LatLon location = null;
OsmandApplication app = (OsmandApplication) getActivity().getApplication(); OsmandApplication app = (OsmandApplication) getActivity().getApplication();
Intent intent = getSherlockActivity().getIntent(); Intent intent = getSherlockActivity().getIntent();
if (intent != null) { if (intent != null) {
@ -187,7 +187,6 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
locationUpdate(location); locationUpdate(location);
} }
@Override @Override
public void locationUpdate(LatLon loc) { public void locationUpdate(LatLon loc) {
if (view != null) { if (view != null) {
@ -365,9 +364,8 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
latEdit.addTextChangedListener(textWatcher); latEdit.addTextChangedListener(textWatcher);
lonEdit.addTextChangedListener(textWatcher); lonEdit.addTextChangedListener(textWatcher);
} }
public void select(int mode){ public void select(int mode){
try { try {
LatLon loc = parseLocation(); LatLon loc = parseLocation();
@ -474,7 +472,6 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
throw new IllegalArgumentException("coordinate=" + coordinate); throw new IllegalArgumentException("coordinate=" + coordinate);
} }
} }
public static String convert(double coordinate, int outputType) { public static String convert(double coordinate, int outputType) {
@ -511,7 +508,5 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
sb.append(df.format(coordinate)); sb.append(df.format(coordinate));
return sb.toString(); return sb.toString();
} }
} }