From a9e13e382654804c44667a01d6ef613ec4046acc Mon Sep 17 00:00:00 2001 From: tokugawa Date: Mon, 21 Apr 2014 13:57:00 -0400 Subject: [PATCH] Comments --- UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java | 2 +- UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java | 2 +- UNCCScavenger/src/edu/uncc/scavenger/SearchActivity.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java b/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java index 6bd1257..5e7007e 100644 --- a/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java +++ b/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java @@ -165,7 +165,7 @@ public class CompassActivity extends Activity implements SensorEventListener compassRoseView.setRotation((long)(-1 * trueHeading)); arrowView.setRotation((long)(-1 * rotateArrow)); - if(locationListener.getDistance() < SEARCH_PROXIMITY) + if(locationListener.getDistance() <= SEARCH_PROXIMITY) { arrowView.setVisibility(View.INVISIBLE); compassRoseView.setVisibility(View.INVISIBLE); diff --git a/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java b/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java index 84e95e9..8dbc5cb 100644 --- a/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java +++ b/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java @@ -97,7 +97,7 @@ public class MainActivity extends Activity { } }.execute(); - //Toast.makeText(getApplicationContext(), ""+locations.get(0).getRiddleImageURL(), Toast.LENGTH_SHORT).show(); + //Toast.makeText(getApplicationContext(), ""+locations.get(0).getRiddleImageUrl(), Toast.LENGTH_SHORT).show(); } @Override diff --git a/UNCCScavenger/src/edu/uncc/scavenger/SearchActivity.java b/UNCCScavenger/src/edu/uncc/scavenger/SearchActivity.java index c154019..f209123 100644 --- a/UNCCScavenger/src/edu/uncc/scavenger/SearchActivity.java +++ b/UNCCScavenger/src/edu/uncc/scavenger/SearchActivity.java @@ -130,7 +130,7 @@ public class SearchActivity extends Activity { } }); - //Toast.makeText(getApplicationContext(), restLocation.getLocationImageURL(), Toast.LENGTH_SHORT).show(); + Toast.makeText(getApplicationContext(), restLocation.getRiddleImageUrl(), Toast.LENGTH_SHORT).show(); Bitmap locationPicture = BitmapAccess.loadBitmap(getApplicationContext(), restLocation.getName()); if(locationPicture != null) {