Make disabling input methods work

Mark isDirty correctly.

Change-Id: I1c5219c9f63dec15272dd97341295e346cdabcb3
Merge "Make disabling input methods work"