Merge "Moved isAppForeground to ActivityManagerInternal."