diff --git a/app/src/main/java/com/forrestguice/suntimeswidget/getfix/LocationListTask.java b/app/src/main/java/com/forrestguice/suntimeswidget/getfix/LocationListTask.java index da9f6277d..0c0fb7f94 100644 --- a/app/src/main/java/com/forrestguice/suntimeswidget/getfix/LocationListTask.java +++ b/app/src/main/java/com/forrestguice/suntimeswidget/getfix/LocationListTask.java @@ -74,9 +74,9 @@ protected LocationListTaskResult doInBackground(Object... params) if (cursor != null) { int selectedIndex = GetFixDatabaseAdapter.findPlaceByName(selected.getLabel(), cursor); - if (selectedIndex < 0) - Log.w("LocationListTask", "Place selection not found! " + selectedPlaceName + ":" + selectedPlaceLat + "," + selectedPlaceLon + " [" + selectedPlaceAlt + "]"); - else Log.d("LocationListTask", "Place selection: " + selectedPlaceName + ":" + selectedPlaceLat + "," + selectedPlaceLon + " [" + selectedPlaceAlt + "]"); + if (selectedIndex < 0) { + Log.w("LocationListTask", "Place selection not found! " + selectedPlaceName + ":" + selectedPlaceLat + "," + selectedPlaceLon + " [" + selectedPlaceAlt + "]"); + } // else Log.d("LocationListTask", "Place selection: " + selectedPlaceName + ":" + selectedPlaceLat + "," + selectedPlaceLon + " [" + selectedPlaceAlt + "]"); result = new LocationListTaskResult(cursor, selectedIndex); }