void (boolean isOnSelectionChange) { if (!isOnSelectionChange && UISettings.getInstance().getNavBarLocation() == NavBarLocation.BOTTOM && myAutoscrollLimit == AutoscrollLimit.NOT_ALLOWED) { return; } final int selectedIndex = myModel.getSelectedIndex(); if (selectedIndex == -1 || selectedIndex >= myList.size()) return; scrollRectToVisible(myList.get(selectedIndex).getBounds()); if (myAutoscrollLimit == AutoscrollLimit.ALLOW_ONCE) myAutoscrollLimit = AutoscrollLimit.NOT_ALLOWED; }