summaryrefslogtreecommitdiffstats
path: root/packages/DocumentsUI
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-10-25 02:35:26 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-25 02:35:26 +0000
commite2120f49f0e4a82fca2cb72240795cc940179eef (patch)
treeb22e9bfd8fde9da22daee768a55ad06801e33a72 /packages/DocumentsUI
parent7520a452a94e9a372ac53451f01469f839d9404c (diff)
parentf135073fddff16595f7fd1c53ce4258ed96ec5cf (diff)
downloadframeworks_base-e2120f49f0e4a82fca2cb72240795cc940179eef.zip
frameworks_base-e2120f49f0e4a82fca2cb72240795cc940179eef.tar.gz
frameworks_base-e2120f49f0e4a82fca2cb72240795cc940179eef.tar.bz2
am f135073f: Merge "Recent directories can\'t show file size." into lmp-mr1-dev automerge: 379551e automerge: 043f8dd
* commit 'f135073fddff16595f7fd1c53ce4258ed96ec5cf': Recent directories can't show file size.
Diffstat (limited to 'packages/DocumentsUI')
-rw-r--r--packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java b/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
index fef1f4a..219de38 100644
--- a/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
+++ b/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
@@ -574,7 +574,8 @@ public class DocumentsActivity extends Activity {
// Only sort by size when visible
sortSize.setVisible(mState.showSize);
- final boolean searchVisible;
+ boolean searchVisible;
+ boolean fileSizeVisible = mState.action != ACTION_MANAGE;
if (mState.action == ACTION_CREATE || mState.action == ACTION_OPEN_TREE) {
createDir.setVisible(cwd != null && cwd.isCreateSupported());
searchVisible = false;
@@ -583,6 +584,7 @@ public class DocumentsActivity extends Activity {
if (cwd == null) {
grid.setVisible(false);
list.setVisible(false);
+ fileSizeVisible = false;
}
if (mState.action == ACTION_CREATE) {
@@ -604,7 +606,7 @@ public class DocumentsActivity extends Activity {
? R.string.menu_file_size_hide : R.string.menu_file_size_show);
advanced.setVisible(mState.action != ACTION_MANAGE);
- fileSize.setVisible(mState.action != ACTION_MANAGE);
+ fileSize.setVisible(fileSizeVisible);
return true;
}