1
0
mirror of https://github.com/bspeice/itcs4180 synced 2024-12-04 21:28:10 -05:00

String compare doesn't work the way you think it does...

This commit is contained in:
DjBushido 2014-04-26 09:37:13 -04:00
parent f8cc67fa59
commit a330ab9155

View File

@ -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);
}