summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-11-29 05:32:15 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-11-29 05:32:15 -0800
commit8d0bb42dd2cfee13a2ab639e7b8a3a86efdcb318 (patch)
treec2598b8b14a2988cca29170b3ce18050d4430390 /src/com/android
parent322a468291301c82f8c6b69dc7734e7124a55506 (diff)
parent30159bdd1f43884b83a9a3d44e3b2a9e12545c0e (diff)
downloadandroid_packages_apps_Gallery2-8d0bb42dd2cfee13a2ab639e7b8a3a86efdcb318.tar.gz
android_packages_apps_Gallery2-8d0bb42dd2cfee13a2ab639e7b8a3a86efdcb318.tar.bz2
android_packages_apps_Gallery2-8d0bb42dd2cfee13a2ab639e7b8a3a86efdcb318.zip
Merge "Gallery2: Fix undo button enable condition"
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/gallery3d/filtershow/history/HistoryManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/history/HistoryManager.java b/src/com/android/gallery3d/filtershow/history/HistoryManager.java
index 569b299cc..9d5065a28 100644
--- a/src/com/android/gallery3d/filtershow/history/HistoryManager.java
+++ b/src/com/android/gallery3d/filtershow/history/HistoryManager.java
@@ -68,7 +68,7 @@ public class HistoryManager {
}
public boolean canUndo() {
- if (mCurrentPresetPosition == getCount() - 1) {
+ if (mCurrentPresetPosition >= getCount() - 1) {
return false;
}
return true;