This change uses shared state for the read-only flag, text input allowed flag and input prompt. Change-Id: I3bdc6843288c5309311461a3d036293d79004e22