Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f91a4b2e authored by Kedi Xu's avatar Kedi Xu
Browse files

SnapdragonGallery: Fix first picture thumbnail doesn't show

When delete the last picture and add one picture,
the first picture's thumbnail doesn't show.

Change-Id: I5d73f11a28d2f649e102ee127909632cc446fd75
CRs-Fixed: 1062720
parent 6948304f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -589,7 +589,9 @@ public class TimeLineSlotView extends GLView {
            if (mSlotCount != null) {
                Slot begin = getSlotByPosition(0, mScrollPosition, true, false),
                        end = getSlotByPosition(0, mScrollPosition + mHeight, true, true);
                if (begin != null && end != null) {
                if (begin == null && end != null && end.index == 0) {
                    setVisibleRange(0, 0);
                } else if (begin != null && end != null) {
                    setVisibleRange(begin.index, end.index);
                }
            }