Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ void selectItemAt(int position, boolean animate) {
"not have an item at position " + position + ".");
}

currentPosition = position; // AUTHOR FORGOT TO UPDATE THE CURRENT POSITION
viewPager.setCurrentItem(position, animate);
}

Expand All @@ -153,6 +154,7 @@ void selectItemWithValue(@NonNull String value, boolean animate) {
for (int i = 0; i < items.size(); i++) {
if (items.get(i).getValue().equals(value)) {
viewPager.setCurrentItem(i, animate);
currentPosition = position; // AUTHOR FORGOT TO UPDATE THE CURRENT POSITION
itemExists = true;
break;
}
Expand Down