Fix #6085: Java string comparison should prefer equals
This commit is contained in:
parent
4df7200836
commit
216f03c849
@ -113,7 +113,7 @@ public class HomeActivity extends AppCompatActivity
|
||||
String curSection = separatedListAdapter.getSectionForPosition(position);
|
||||
Log.v(TAG, "Clicked on item id " + separatedListAdapter.getItemId(position) +
|
||||
" in section " + curSection);
|
||||
if (curSection == sectionLabelBookmarks)
|
||||
if (curSection.equals(sectionLabelBookmarks))
|
||||
{
|
||||
String refStr = view.getTag().toString();
|
||||
if (ConnectionReference.isManualBookmarkReference(refStr) ||
|
||||
|
Loading…
Reference in New Issue
Block a user