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

Commit ced6f851 authored by Robert Carr's avatar Robert Carr
Browse files

SurfaceControl#setGeometry: Pass invalid rect instead of empty rect

Native code expects an invalid rect instead of an empty rect.

Bug: 123720507
Test: android.wm.cts.SurfaceControlTest
Change-Id: Idbfb128a1266aaf1af51802fe6164ad31d15d2fe
parent 08db2662
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -378,9 +378,13 @@ static void nativeSetGeometry(JNIEnv* env, jclass clazz, jlong transactionObj, j
    Rect source, dst;
    if (sourceObj != NULL) {
        source = rectFromObj(env, sourceObj);
    } else {
        source.makeInvalid();
    }
    if (dstObj != NULL) {
        dst = rectFromObj(env, dstObj);
    } else {
        dst.makeInvalid();
    }
    transaction->setGeometry(ctrl, source, dst, orientation);
}