if(CompleteString.equals(resultString)); <- delete ;
Your code is equivalent to:
if(CompleteString.equals(resultString))
{
}
{
rowView.setBackgroundResource(R.color.listselect_red);
}
So, if equals returns true, an empty block will be executed, and after the second block it will always execute regardless of whether falseor true.
source
share