Implement ShadowActivity#finishAffinity and ShadowMatrix#preScale