Merge "Set the linear layout direction based on initial config" into tm-qpr-dev