Merge "Only check uiMode while creating context of splash screen" into main