diff options
author | Danesh M <danesh@cyngn.com> | 2016-06-14 10:34:40 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-06-14 11:47:46 -0700 |
commit | 91642748f97f26b1194f562a2219749397832b5d (patch) | |
tree | 70727d6463ddbeeb07ce01995562297f3f090e8f /packages | |
parent | e39d1d75b95c02b7fb055d7caab535c8e1e919ad (diff) | |
download | frameworks_base-91642748f97f26b1194f562a2219749397832b5d.zip frameworks_base-91642748f97f26b1194f562a2219749397832b5d.tar.gz frameworks_base-91642748f97f26b1194f562a2219749397832b5d.tar.bz2 |
DocumentsUI : Hide advanced menu option when in forced mode
When in EXTRA_SHOW_ADVANCED is set, don't show the menu option to toggle it
since it is a no-op
FEIJ-1079
Change-Id: I0d2ea026736cb7131f451d39e2e662d0c2ae436f
Diffstat (limited to 'packages')
-rw-r--r-- | packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java b/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java index a57bcc6..7d6ee2f 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java +++ b/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java @@ -495,7 +495,8 @@ public class DocumentsActivity extends BaseActivity { createDir.setVisible(false); } - advanced.setVisible(!(mState.action == ACTION_MANAGE || mState.action == ACTION_BROWSE)); + advanced.setVisible(!(mState.action == ACTION_MANAGE || mState.action == ACTION_BROWSE) + && !mState.forceAdvanced); fileSize.setVisible(fileSizeVisible); settings.setVisible((mState.action == ACTION_MANAGE || mState.action == ACTION_BROWSE) |