@SuppressWarnings("deprecation")
    @Override
    public ViewParent invalidateChildInParent(int[] location, @NonNull Rect dirty) {
        // Invalidating correct rectangle
        applyMatrix(dirty, matrix);
        return super.invalidateChildInParent(location, dirty);
    }
@ SuppressWarnings ( "deprecation" ) @ Override public ViewParent invalidateChildInParent ( int [ ] location , @ NonNull Rect dirty ) { applyMatrix ( dirty , matrix ) ; return super . invalidateChildInParent ( location , dirty ) ; }
It seems to be fine to use this method instead of suggested onDescendantInvalidated(...)