Merge "Only check canSpecifyOrientation at leaf Task" into sc-dev