Merge "Emit TRIM_MEMORY_UI_HIDDEN event on switching to background" into sc-v2-dev