From a330ab9155e1d41197ef7f8f5f8567970a89e33c Mon Sep 17 00:00:00 2001 From: DjBushido Date: Sat, 26 Apr 2014 09:37:13 -0400 Subject: [PATCH] String compare doesn't work the way you think it does... --- UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java b/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java index 1a3f1d4..c9506fb 100644 --- a/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java +++ b/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java @@ -154,7 +154,7 @@ public class MainActivity extends Activity { holder.name = (TextView)v.findViewById(R.id.txtName); holder.riddle = (TextView)v.findViewById(R.id.txtRiddle); - if(locations.get(position).getKey()!=null) + if(!locations.get(position).getKey().equals("")) { holder.imgFound.setImageResource(R.drawable.checkbox_checked); }