Allow to keep screen on only if window can be seen am: b20addbdfb
am: 19353b45e5

Change-Id: Id0d729e59d156ec93a59031efa670642c1b70502