summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorhuiyan <huiyan@codeaurora.org>2016-03-26 17:46:52 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-03-29 22:36:22 -0700
commitac41f662caf6589eac2b9e9e311a2e99db4aa9cb (patch)
tree34e81fc47423c7d44aa39046c501feb7b6b21718 /src
parent41bc426af4b148f264ab7b07141636b06add4d0a (diff)
downloadandroid_packages_apps_Gallery2-ac41f662caf6589eac2b9e9e311a2e99db4aa9cb.tar.gz
android_packages_apps_Gallery2-ac41f662caf6589eac2b9e9e311a2e99db4aa9cb.tar.bz2
android_packages_apps_Gallery2-ac41f662caf6589eac2b9e9e311a2e99db4aa9cb.zip
Gallery2: Fix the selected picture is not selected after unlock.
The TimeLinePage leave selection mode when onPause. So the selected picture is not selected when onResume. The TimeLinePage don't leave selection mode when onPause. If page is in selection mode, make toolbar invisible when onResume. Change-Id: Ieecdca955e66d783ada293db2b43039948fc443c CRs-Fixed: 986687
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/app/TimeLinePage.java3
-rw-r--r--src/com/android/gallery3d/ui/ActionModeHandler.java5
2 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/app/TimeLinePage.java b/src/com/android/gallery3d/app/TimeLinePage.java
index 618f219f4..b318aaf07 100644
--- a/src/com/android/gallery3d/app/TimeLinePage.java
+++ b/src/com/android/gallery3d/app/TimeLinePage.java
@@ -459,9 +459,6 @@ public class TimeLinePage extends ActivityState implements
super.onPause();
mIsActive = false;
- if (mSelectionManager.inSelectionMode()) {
- mSelectionManager.leaveSelectionMode();
- }
mAlbumView.setSlotFilter(null);
mActionModeHandler.pause();
mAlbumDataAdapter.pause();
diff --git a/src/com/android/gallery3d/ui/ActionModeHandler.java b/src/com/android/gallery3d/ui/ActionModeHandler.java
index 4024fc9d7..126d7936c 100644
--- a/src/com/android/gallery3d/ui/ActionModeHandler.java
+++ b/src/com/android/gallery3d/ui/ActionModeHandler.java
@@ -585,7 +585,10 @@ public class ActionModeHandler implements Callback, PopupList.OnPopupItemClickLi
}
public void resume() {
- if (mSelectionManager.inSelectionMode()) updateSupportedOperation();
+ if (mSelectionManager.inSelectionMode()) {
+ mActivity.getToolbar().setVisibility(View.INVISIBLE);
+ updateSupportedOperation();
+ }
mMenuExecutor.resume();
}
}