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

Commit f6e6bd10 authored by felkachang's avatar felkachang
Browse files

Fix TestNotificationService not found

TestNotificationService located in tests rather than docsui.
The context of the component of TestNotificationService should be
com.android.documentsui.tests.

Change-Id: I5c0a9097fbd436bff6a71023e66af2d75a68e251
Fixes: 120753742
Test: atest DocumentsUITests:com.android.documentsui.FileCopyUiTest
parent 844989ea
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.documentsui.bots;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.uiautomator.UiDevice;

import com.android.documentsui.services.TestNotificationService;
@@ -33,7 +34,8 @@ public class NotificationsBot extends Bots.BaseBot {

    public NotificationsBot(UiDevice device, Context context, int timeout) {
        super(device, context, timeout);
        mComponent = new ComponentName(context, TestNotificationService.class);
        mComponent = new ComponentName(InstrumentationRegistry.getContext(),
                TestNotificationService.class);
    }

    public void setNotificationAccess(Activity activity, boolean enabled) throws IOException {