Skip to content

Commit

Permalink
Fixes #2960. Updated code to exclude the first row when determining i…
Browse files Browse the repository at this point in the history
…f a item is the last visible item in history feed. this prevents the context menu from showing above clear history button (#3450)
  • Loading branch information
daron-walters committed Jun 3, 2020
1 parent 38cba1e commit f4003b0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -204,7 +204,7 @@ public void onMore(View view, VisitInfo item) {
int lastItem = mHistoryAdapter.getItemCount();
if ((rowPosition == layoutManager.findLastVisibleItemPosition() || rowPosition == layoutManager.findLastCompletelyVisibleItemPosition() ||
rowPosition == layoutManager.findLastVisibleItemPosition()-1 || rowPosition == layoutManager.findLastCompletelyVisibleItemPosition()-1)
&& rowPosition != lastItem) {
&& (rowPosition != lastItem && rowPosition != 1)) {
isLastVisibleItem = true;
}
}
Expand Down

0 comments on commit f4003b0

Please sign in to comment.