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

Commit 98076420 authored by Alex Kershaw's avatar Alex Kershaw
Browse files

Don't run failing 'other user' test pre-R

Fixes: 150904641
Test: atest com.android.documentsui.dirlist.AppsRowManagerTest#testUpdateView_showSelectedUserItems_otherUser
Change-Id: I6d9c018d717d2c00e58f07d6e9b4224f1c4fd444
parent eda6a76e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ import com.android.documentsui.sidebar.RootItem;
import com.android.documentsui.testing.TestActionHandler;
import com.android.documentsui.testing.TestProvidersAccess;
import com.android.documentsui.testing.TestResolveInfo;
import com.android.documentsui.util.VersionUtils;

import com.google.common.collect.Lists;

@@ -169,6 +170,9 @@ public class AppsRowManagerTest {

    @Test
    public void testUpdateView_showSelectedUserItems_otherUser() {
        if (!VersionUtils.isAtLeastR()) {
            return;
        }
        mState.action = State.ACTION_GET_CONTENT;
        when(mActivity.getSelectedUser()).thenReturn(TestProvidersAccess.OtherUser.USER_ID);
        mState.stack.changeRoot(TestProvidersAccess.RECENTS);