Improve PageLayoutManager scale
This commit is contained in:
1 parent
d4195c6e5b
commit
e8251ee521
1 file changed
+2
-3
@@ -449,9 +449,8 @@ public class PagerLayoutManager extends GalleryView.LayoutManager {
|
||||
image.getScaleDefault(scales);
|
||||
float scale = image.getScale();
|
||||
float endScale = scales[0];
|
||||
for (int i = 0, size = scales.length; i < size; i++) {
|
||||
float value = scales[i];
|
||||
if (scale < value) {
|
||||
for (float value: scales) {
|
||||
if (scale < value - 0.01f) {
|
||||
endScale = value;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user