OSDN Git Service
(root)
/
android-x86
/
packages-apps-Gallery2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a0b5fe
)
Hide grid view menu item in secure album.
author
Wu-cheng Li
<wuchengli@google.com>
Thu, 20 Sep 2012 09:12:46 +0000
(17:12 +0800)
committer
Wu-cheng Li
<wuchengli@google.com>
Thu, 20 Sep 2012 09:12:46 +0000
(17:12 +0800)
bug:
7200451
Change-Id: I23b6fbc48aac46e9b25b159416bc9f64a357d038
src/com/android/gallery3d/app/PhotoPage.java
patch
|
blob
|
history
diff --git
a/src/com/android/gallery3d/app/PhotoPage.java
b/src/com/android/gallery3d/app/PhotoPage.java
index
8e06794
..
913dd99
100644
(file)
--- a/
src/com/android/gallery3d/app/PhotoPage.java
+++ b/
src/com/android/gallery3d/app/PhotoPage.java
@@
-1075,7
+1075,7
@@
public class PhotoPage extends ActivityState implements
Menu menu = mActionBar.getMenu();
if (menu == null) return;
MenuItem item = menu.findItem(R.id.action_grid);
- if (item != null) item.setVisible(enabled);
+ if (item != null) item.setVisible(
(mSecureAlbum == null) &&
enabled);
}
public void onFilmModeChanged(boolean enabled) {