Moved code to re-enable UI interaction to onResume().