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);
|
String curSection = separatedListAdapter.getSectionForPosition(position);
|
||||||
Log.v(TAG, "Clicked on item id " + separatedListAdapter.getItemId(position) +
|
Log.v(TAG, "Clicked on item id " + separatedListAdapter.getItemId(position) +
|
||||||
" in section " + curSection);
|
" in section " + curSection);
|
||||||
if (curSection == sectionLabelBookmarks)
|
if (curSection.equals(sectionLabelBookmarks))
|
||||||
{
|
{
|
||||||
String refStr = view.getTag().toString();
|
String refStr = view.getTag().toString();
|
||||||
if (ConnectionReference.isManualBookmarkReference(refStr) ||
|
if (ConnectionReference.isManualBookmarkReference(refStr) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user