Loading
Update layout direction if ViewRoot is preserved
Otherwise if the language of the configuration is changed between
RTL and LTR, the layout direction may still keep the previous
direction after calling recreate().
Bug: 250868428
Test: The layout direction will change with below sample:
Configuration config = getResources().getConfiguration();
configconfiguration.setLocales(LocaleList.forLanguageTags("ar"));
getResources().updateConfiguration(configuconfigration, null);
recreate();
Change-Id: Iad405bf02b2f19cb3aa8cbc21f9bca67d8a53c30