From 2652230451296461bffcb8759f526bcfacca7109 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 31 Dec 2014 00:02:00 +0100 Subject: [PATCH] initialize var --- .../osmand/plus/activities/NavigatePointFragment.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java index 120234fa34..ad2bc5220b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java @@ -166,7 +166,7 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct @Override public void onResume() { super.onResume(); - LatLon location; + LatLon location = null; OsmandApplication app = (OsmandApplication) getActivity().getApplication(); Intent intent = getSherlockActivity().getIntent(); if (intent != null) { @@ -187,7 +187,6 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct locationUpdate(location); } - @Override public void locationUpdate(LatLon loc) { if (view != null) { @@ -365,9 +364,8 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct latEdit.addTextChangedListener(textWatcher); lonEdit.addTextChangedListener(textWatcher); } - - + public void select(int mode){ try { LatLon loc = parseLocation(); @@ -474,7 +472,6 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct throw new IllegalArgumentException("coordinate=" + coordinate); } } - public static String convert(double coordinate, int outputType) { @@ -511,7 +508,5 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct sb.append(df.format(coordinate)); return sb.toString(); } - - }