Places bug: getResources() is called before activity attach sometimes