Fix #6085: Java string comparison should prefer equals

This commit is contained in:
akallabeth 2020-04-16 08:21:23 +02:00 committed by akallabeth
parent 4df7200836
commit 216f03c849

View File

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