summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-x[-rw-r--r--]src/com/android/gallery3d/ui/TimeLineSlotView.java4
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);
}
}