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

Commit e19a4540 authored by Adrian Roos's avatar Adrian Roos
Browse files

Revert "Add null check for vrManager"

This reverts commit ddf1b4b4.
Bug: 112064298
Change-Id: I6c4d0a52b28d0d09f37bd5c9c8da5f6c2b4791cb
parent f5d99fa7
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.os.Process;
import android.provider.Settings;
import android.test.ActivityInstrumentationTestCase2;
import android.test.suitebuilder.annotation.SmallTest;
import android.util.Log;

/**
 * Tests ActivityManager#setPersistentVrThread and ActivityManager#setVrThread's
@@ -75,12 +76,10 @@ public class SetPersistentVrThreadTest extends ActivityInstrumentationTestCase2<
    }

    private void setPersistentVrModeEnabled(boolean enable) throws Throwable {
        if (mVrManager != null) {
        mVrManager.setPersistentVrModeEnabled(enable);
        // Allow the system time to send out callbacks for persistent VR mode.
        Thread.sleep(200);
    }
    }

    @SmallTest
    public void testSetPersistentVrThreadAPISuccess() throws Throwable {