Don't render the preview while it's not visible to the user.

Bug: 13586944
Change-Id: Ide777da080ce150cec601b4e6e88cd6c4ea19cda
2 files changed