Fixed bug by inflattening in non-ui thread.