Recording a boolean flag in onPostExecute method to say that the preferences have been saved.