forked from upstream-mirrors/OpenTracks
Minor formating fixes.
This commit is contained in:
@@ -206,7 +206,8 @@ public class NavControls {
|
|||||||
|
|
||||||
private void shiftIcons(boolean isLeft) {
|
private void shiftIcons(boolean isLeft) {
|
||||||
// Increment or decrement by one, with wrap around
|
// Increment or decrement by one, with wrap around
|
||||||
currentIcons = (currentIcons + leftIcons.length() + (isLeft ? -1 : 1)) % leftIcons.length();
|
currentIcons = (currentIcons + leftIcons.length() +
|
||||||
|
(isLeft ? -1 : 1)) % leftIcons.length();
|
||||||
prevImage.setIcon(leftIcons.getDrawable(currentIcons));
|
prevImage.setIcon(leftIcons.getDrawable(currentIcons));
|
||||||
nextImage.setIcon(rightIcons.getDrawable(currentIcons));
|
nextImage.setIcon(rightIcons.getDrawable(currentIcons));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user