diff options
author | Erin Dahlgren <edahlgren@google.com> | 2013-10-09 15:47:36 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-09 15:47:36 -0700 |
commit | 3f552685349fc1b447dc09c54d66de397270da9a (patch) | |
tree | f4e6bba475167a27a1fbc49808195b5808b34e86 | |
parent | 3cac767e2fafccd565761b7677f554d680c72de3 (diff) | |
parent | 716860487554b5e214d355f88effc9b8c316d54e (diff) | |
download | android_packages_apps_Snap-3f552685349fc1b447dc09c54d66de397270da9a.tar.gz android_packages_apps_Snap-3f552685349fc1b447dc09c54d66de397270da9a.tar.bz2 android_packages_apps_Snap-3f552685349fc1b447dc09c54d66de397270da9a.zip |
am 71686048: Merge "Update bottom edit control for photos inside secure and insecure mode." into gb-ub-photos-carlsbad
* commit '716860487554b5e214d355f88effc9b8c316d54e':
Update bottom edit control for photos inside secure and insecure mode.
-rw-r--r-- | src/com/android/camera/ui/FilmStripView.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/camera/ui/FilmStripView.java b/src/com/android/camera/ui/FilmStripView.java index 7c9a5bab0..b6f83adf1 100644 --- a/src/com/android/camera/ui/FilmStripView.java +++ b/src/com/android/camera/ui/FilmStripView.java @@ -1027,9 +1027,11 @@ public class FilmStripView extends ViewGroup implements BottomControlsListener { // We cannot rely on the requestIds to check for data changes, // because an item hands its id to its rightmost neighbor on // deletion. To avoid loading the ImageData, we check if the DataAdapter - // has fewer total items. + // has fewer total items. We don't want to miss setting the controls + // for a photo while we're still in capture mode, so ignore its fixed + // requestId (0). int total = mDataAdapter.getTotalNumber(); - if (!force && mLastTotalNumber == total) { + if (!force && (requestId == 0 || mLastTotalNumber == total)) { return; } mLastTotalNumber = total; |