summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ViewImage.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2009-05-05 22:11:15 -0700
committerOwen Lin <owenlin@google.com>2009-05-28 20:45:39 -0700
commitbbc2f2f15a865cf0330cd78a6ea67177c5863b3b (patch)
treef552459aa697f01aa5c93ed584a3b1e573eeb4c9 /src/com/android/camera/ViewImage.java
parentff73b96a2047b51a0a4f489fb4a9a283b66cf2b5 (diff)
downloadLegacyCamera-bbc2f2f15a865cf0330cd78a6ea67177c5863b3b.zip
LegacyCamera-bbc2f2f15a865cf0330cd78a6ea67177c5863b3b.tar.gz
LegacyCamera-bbc2f2f15a865cf0330cd78a6ea67177c5863b3b.tar.bz2
Simplify the database code by keeping small data in memory.
Diffstat (limited to 'src/com/android/camera/ViewImage.java')
-rw-r--r--src/com/android/camera/ViewImage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/ViewImage.java b/src/com/android/camera/ViewImage.java
index 0cdcdbc..9ce5e5c 100644
--- a/src/com/android/camera/ViewImage.java
+++ b/src/com/android/camera/ViewImage.java
@@ -876,7 +876,7 @@ public class ViewImage extends Activity implements View.OnClickListener {
IImage image = mAllImages.getImageForUri(uri);
if (image != null) {
- mCurrentPosition = image.getRow();
+ mCurrentPosition = mAllImages.getImageIndex(image);
mLastSlideShowImage = mCurrentPosition;
}
}