diff options
Diffstat (limited to 'src/com/android/gallery3d/app/PhotoPage.java')
-rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index c110a8ccc..b3a6040de 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -1217,9 +1217,7 @@ public abstract class PhotoPage extends ActivityState implements @Override public void onCommitDeleteImage() { if (mDeletePath == null) return; - mSelectionManager.deSelectAll(); - mSelectionManager.toggle(mDeletePath); - mMenuExecutor.onMenuClicked(R.id.action_delete, null, true, false); + mMenuExecutor.startSingleItemAction(R.id.action_delete, mDeletePath); mDeletePath = null; } |