Merge "Per-app compat treatment for setRequestedOrientation loops." into tm-qpr-dev