Merge "Check visibility when moving task to front."