reisizer / android-ui-utils

Automatically exported from code.google.com/p/android-ui-utils
0 stars 1 forks source link

Wrong line in Carousel-Example #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There is an error in the Carousel-Example-Code which makes my eclipse go mad. 
It's located in the file carousel.rs at line 1643 / 1644:
cards[i].cardVisible = (p >= visibleFirst && p < visibleLast)
                        || p <= visibleFirst && p > visibleLast;

This should be:
cards[i].cardVisible = (p >= visibleFirst && p < visibleLast)
                        || (p <= visibleFirst && p > visibleLast);

Original issue reported on code.google.com by TimMesse...@gmail.com on 23 Nov 2011 at 6:46

GoogleCodeExporter commented 9 years ago
Those should be technically equivalent statements. I'm also planning on 
deprecating that download soon in favor of moving this to an official SDK 
sample.

Original comment by romannu...@google.com on 23 Nov 2011 at 7:39