Skip to content

Commit

Permalink
修改已知bug。
Browse files Browse the repository at this point in the history
  • Loading branch information
梁任彦 committed Sep 26, 2017
1 parent f4d4d28 commit 5936d62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ private void showTime() {
*/
private void changeTime() {
int firstVisibleItem = getFirstVisibleItem();
if (firstVisibleItem > 0 && firstVisibleItem < mAdapter.getData().size()) {
if (firstVisibleItem >= 0 && firstVisibleItem < mAdapter.getData().size()) {
Image image = mAdapter.getData().get(firstVisibleItem);
String time = DateUtils.getImageTime(image.getTime() * 1000);
tvTime.setText(time);
Expand Down

0 comments on commit 5936d62

Please sign in to comment.