Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit f4003b0

Browse files
Fixes #2960. Updated code to exclude the first row when determining if a item is the last visible item in history feed. this prevents the context menu from showing above clear history button (#3450)
1 parent 38cba1e commit f4003b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/views/library/HistoryView.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public void onMore(View view, VisitInfo item) {
204204
int lastItem = mHistoryAdapter.getItemCount();
205205
if ((rowPosition == layoutManager.findLastVisibleItemPosition() || rowPosition == layoutManager.findLastCompletelyVisibleItemPosition() ||
206206
rowPosition == layoutManager.findLastVisibleItemPosition()-1 || rowPosition == layoutManager.findLastCompletelyVisibleItemPosition()-1)
207-
&& rowPosition != lastItem) {
207+
&& (rowPosition != lastItem && rowPosition != 1)) {
208208
isLastVisibleItem = true;
209209
}
210210
}

0 commit comments

Comments
 (0)