forked from upstream-mirrors/OpenTracks
Minor formating fixes.
This commit is contained in:
@@ -16,14 +16,14 @@ limitations under the License.
|
|||||||
-->
|
-->
|
||||||
<resources>
|
<resources>
|
||||||
<array name="left_icons">
|
<array name="left_icons">
|
||||||
<item>@drawable/left_arrow_chart_stateful</item>
|
<item>@drawable/left_arrow_chart_stateful</item>
|
||||||
<item>@drawable/left_arrow_track_stateful</item>
|
<item>@drawable/left_arrow_track_stateful</item>
|
||||||
<item>@drawable/left_arrow_stats_stateful</item>
|
<item>@drawable/left_arrow_stats_stateful</item>
|
||||||
</array>
|
</array>
|
||||||
|
|
||||||
<array name="right_icons">
|
<array name="right_icons">
|
||||||
<item>@drawable/right_arrow_stats_stateful</item>
|
<item>@drawable/right_arrow_stats_stateful</item>
|
||||||
<item>@drawable/right_arrow_chart_stateful</item>
|
<item>@drawable/right_arrow_chart_stateful</item>
|
||||||
<item>@drawable/right_arrow_track_stateful</item>
|
<item>@drawable/right_arrow_track_stateful</item>
|
||||||
</array>
|
</array>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -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