added onResume to handle changed settings; refactored shared code into updateFromSettings function