I think you may want to append the inputType here instead of setting a new one. I.e:
tv.setInputType(tv.getInputType() | InputType.TYPE_TEXT_FLAG_IME_MULTI_LINE);

This is b/c handleReturnKeyType() is called on propertyChanged(), so we don't want to overwrite the original inputType (which could contain additional flags).