initialize var
This commit is contained in:
parent
dc7bfea956
commit
2652230451
1 changed files with 2 additions and 7 deletions
|
@ -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) {
|
||||||
|
@ -367,7 +366,6 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void select(int mode){
|
public void select(int mode){
|
||||||
try {
|
try {
|
||||||
LatLon loc = parseLocation();
|
LatLon loc = parseLocation();
|
||||||
|
@ -476,7 +474,6 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static String convert(double coordinate, int outputType) {
|
public static String convert(double coordinate, int outputType) {
|
||||||
if (coordinate < -180.0 || coordinate > 180.0 || Double.isNaN(coordinate)) {
|
if (coordinate < -180.0 || coordinate > 180.0 || Double.isNaN(coordinate)) {
|
||||||
throw new IllegalArgumentException("coordinate=" + coordinate); //$NON-NLS-1$
|
throw new IllegalArgumentException("coordinate=" + coordinate); //$NON-NLS-1$
|
||||||
|
@ -512,6 +509,4 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue