diff options
author | Kedi Xu <kedix@codeaurora.org> | 2016-09-08 11:11:11 +0800 |
---|---|---|
committer | Kedi Xu <kedix@codeaurora.org> | 2016-09-08 11:11:11 +0800 |
commit | f91a4b2e087037f7281938e5eedfd5a973161ba3 (patch) | |
tree | b8ba6e4bece7003ffa7683ee37059afab1d6635f /src/com/android/gallery3d/ui | |
parent | 6948304f6919e81b75b5a1fa9f86d783e9fb87dd (diff) | |
download | android_packages_apps_Gallery2-f91a4b2e087037f7281938e5eedfd5a973161ba3.tar.gz android_packages_apps_Gallery2-f91a4b2e087037f7281938e5eedfd5a973161ba3.tar.bz2 android_packages_apps_Gallery2-f91a4b2e087037f7281938e5eedfd5a973161ba3.zip |
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
Diffstat (limited to 'src/com/android/gallery3d/ui')
-rwxr-xr-x[-rw-r--r--] | src/com/android/gallery3d/ui/TimeLineSlotView.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/TimeLineSlotView.java b/src/com/android/gallery3d/ui/TimeLineSlotView.java index 329ea75e3..7dcf4ef5f 100644..100755 --- a/src/com/android/gallery3d/ui/TimeLineSlotView.java +++ b/src/com/android/gallery3d/ui/TimeLineSlotView.java @@ -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); } } |