Merge "Minor adjustements on UserManager.isUserForeground()." into sc-dev