Merge "Update visibility when attached" into rvc-dev am: 1262dc842f am: 20a8e80cca

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12010097

Change-Id: Ifb7c266713e49af6b82c43ee3981577a3999e00a