Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98d40b2b authored by Aga Wronska's avatar Aga Wronska
Browse files

Fix search view tests on handheld devices

Change-Id: If7107e23e93989f040abf7f909b4134b0035b8e4
parent 55603492
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -162,7 +162,9 @@ public class UiBot extends BaseBot {
    }

    UiObject findSearchViewIcon() {
        return findObject("com.android.documentsui:id/menu_search", "android:id/search_button");
        return mContext.getResources().getBoolean(R.bool.full_bar_search_view)
                ? findObject("com.android.documentsui:id/menu_search")
                : findObject("com.android.documentsui:id/menu_search", "android:id/search_button");
    }

    UiObject findActionModeBar() {