summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/SelectionManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/ui/SelectionManager.java')
-rw-r--r--src/com/android/gallery3d/ui/SelectionManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/SelectionManager.java b/src/com/android/gallery3d/ui/SelectionManager.java
index 9599f5b3f..0ab69d25e 100644
--- a/src/com/android/gallery3d/ui/SelectionManager.java
+++ b/src/com/android/gallery3d/ui/SelectionManager.java
@@ -47,6 +47,7 @@ public class SelectionManager {
private boolean mInSelectionMode;
private boolean mAutoLeave = true;
private int mTotal;
+ private Path mPressedPath;
public interface SelectionListener {
public void onSelectionModeChange(int mode);
@@ -141,6 +142,14 @@ public class SelectionManager {
}
}
+ public void setPressedPath(Path path) {
+ mPressedPath = path;
+ }
+
+ public boolean isPressedPath(Path path) {
+ return path != null && path == mPressedPath;
+ }
+
private static void expandMediaSet(ArrayList<Path> items, MediaSet set) {
int subCount = set.getSubMediaSetCount();
for (int i = 0; i < subCount; i++) {