diff options
author | 2025-03-19 19:24:58 -0700 | |
---|---|---|
committer | 2025-03-19 19:24:58 -0700 | |
commit | 351a3e2f8408f527d408d55d956558493c507d8c (patch) | |
tree | c1a35842695d3923278bfff16c811e761415ceb9 | |
parent | 0a9a9f0db4748ddac9b3ff9735fd3b599e9909ee (diff) | |
parent | 8d4432f9bc6477c8f10c50f7513b99fc4a2f528b (diff) |
Merge "[DocsUI M3] Fix DirectoryListBot when M3 enabled" into main
-rw-r--r-- | tests/common/com/android/documentsui/bots/DirectoryListBot.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/common/com/android/documentsui/bots/DirectoryListBot.java b/tests/common/com/android/documentsui/bots/DirectoryListBot.java index 314013e53..8884bf0f2 100644 --- a/tests/common/com/android/documentsui/bots/DirectoryListBot.java +++ b/tests/common/com/android/documentsui/bots/DirectoryListBot.java @@ -16,6 +16,8 @@ package com.android.documentsui.bots; +import static com.android.documentsui.util.FlagUtils.isUseMaterial3FlagEnabled; + import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertFalse; import static junit.framework.Assert.assertNotNull; @@ -71,7 +73,7 @@ public class DirectoryListBot extends Bots.BaseBot { mDirListId = mTargetPackage + ":id/dir_list"; mItemRootId = mTargetPackage + ":id/item_root"; mPreviewId = mTargetPackage + ":id/preview_icon"; - mIconId = mTargetPackage + ":id/icon"; + mIconId = mTargetPackage + (isUseMaterial3FlagEnabled() ? ":id/icon_wrapper" : ":id/icon"); } public void assertDocumentsCount(int count) throws UiObjectNotFoundException { |