Fix #6085: Java string comparison should prefer equals

This commit is contained in:
akallabeth 2020-04-16 08:21:23 +02:00
parent 971be4fe9b
commit 4259f5c561
1 changed files with 1 additions and 1 deletions

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