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

Commit 06ca4d9c authored by Schneider Victor-tulias's avatar Schneider Victor-tulias Committed by Android (Google) Code Review
Browse files

Merge "Fix flaky RuntimeException in CellLayout." into udc-qpr-dev

parents 372f88dd 750c5af2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2735,11 +2735,13 @@ public class CellLayout extends ViewGroup {
    }

    public boolean isOccupied(int x, int y) {
        if (x < mCountX && y < mCountY) {
        if (x >= 0 && x < mCountX && y >= 0 && y < mCountY) {
            return mOccupied.cells[x][y];
        } else {
        }
        if (BuildConfig.IS_STUDIO_BUILD) {
            throw new RuntimeException("Position exceeds the bound of this CellLayout");
        }
        return true;
    }

    @Override