summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/unit/com/android/documentsui/files/ActionHandlerTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/com/android/documentsui/files/ActionHandlerTest.java b/tests/unit/com/android/documentsui/files/ActionHandlerTest.java
index 8b03247b2..4e6cb8f05 100644
--- a/tests/unit/com/android/documentsui/files/ActionHandlerTest.java
+++ b/tests/unit/com/android/documentsui/files/ActionHandlerTest.java
@@ -460,7 +460,10 @@ public class ActionHandlerTest {
assertEquals(false, result);
}
+ // Require desktop file handling flag because when it's disabled proguard strips the
+ // openDocumentViewOnly function because it's not used anywhere reachable by production code.
@Test
+ @RequiresFlagsEnabled({Flags.FLAG_DESKTOP_FILE_HANDLING})
public void testDocumentContextMenuOpen() throws Exception {
mActivity.resources.setQuickViewerPackage("corptropolis.viewer");
mActivity.currentRoot = TestProvidersAccess.HOME;