Delay the type value change until the custom value is correct.

Also make createCustomDialog() private, as
- This method is used only by createLableDialog()
- This method heavily depends on the state of private instances (mKind, mType),
  so I thought external objects should not touch this method directly.

Internal issue number: 1752454
1 file changed