summaryrefslogtreecommitdiffstats
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-04-13 23:28:10 -0700
commit671cc5a9a56a29a303e11ac67e43e5b93020f645 (patch)
treee7be3f942fab8ec3052f47c90baea27d2108965b
parent2d1c00d15b99de97b2506d6ed0e27a06a5416c07 (diff)
downloadandroid_packages_apps_Gallery2-671cc5a9a56a29a303e11ac67e43e5b93020f645.tar.gz
android_packages_apps_Gallery2-671cc5a9a56a29a303e11ac67e43e5b93020f645.tar.bz2
android_packages_apps_Gallery2-671cc5a9a56a29a303e11ac67e43e5b93020f645.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
-rwxr-xr-xsrc/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 cefe6a797..a1f56b062 100755
--- a/src/com/android/gallery3d/app/TimeLinePage.java
+++ b/src/com/android/gallery3d/app/TimeLinePage.java
@@ -465,9 +465,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();
}
}