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

Commit 2571d991 authored by Mark Harman's avatar Mark Harman
Browse files

Don't run testCamera2PrefUpgrade() on devices that don't support it.

parent d903ae3d
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -10966,6 +10966,11 @@ public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActiv
        // n.b., don't bother calling setToDefault()
        // n.b., don't bother calling setToDefault()
        waitUntilCameraOpened();
        waitUntilCameraOpened();
        if( !mActivity.supportsCamera2() ) {
            Log.d(TAG, "test requires camera2 support");
            return;
        }
        assertFalse(mPreview.usingCamera2API());
        assertFalse(mPreview.usingCamera2API());
        // test legacy key present, but set to old api
        // test legacy key present, but set to old api