summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
author Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2025-03-20 16:32:20 -0700
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2025-03-20 16:32:20 -0700
commiteb3508c8701c0b69ddc0b879624d0a14f88db109 (patch)
treec1a35842695d3923278bfff16c811e761415ceb9 /tests
parent6f688e13e1397a56bdd3eeaaaf04d30414ae795b (diff)
parent351a3e2f8408f527d408d55d956558493c507d8c (diff)
Snap for 13248265 from 351a3e2f8408f527d408d55d956558493c507d8c to 25Q2-release
Change-Id: I4c545121fbe227e97a6c4de5bcb0e12048a00c1d
Diffstat (limited to 'tests')
-rw-r--r--tests/common/com/android/documentsui/bots/DirectoryListBot.java4
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 {