Changed deprecated method call setInline to setLocality.