Fix normal preview index error

This commit is contained in:
seven332 committed 2015-07-06 15:17:22 +08:00
1 parent 0025c76573
commit 951e7323e3
1 file changed
+1 -1
@@ -256,7 +256,7 @@ public class NormalPreviewSet extends PreviewSet {
int index2 = imageUrl.lastIndexOf('.');
try {
imageIndex = Integer.parseInt(imageUrl.substring(index1 + 1, index2)) - 1;
imageIndex = Integer.parseInt(imageUrl.substring(index1 + 1, index2));
} catch (Exception e) {
Log.w("Can't get normal preview index", e);
imageIndex = -1;