issue/1790-illegalstate-reader-detail

Fix #1790 - avoid IllegalStateException caused by calling getResources() before the fragment has been added to the activity. Note that this is already fixed in 3.2.