commit | be9da6d252dbccacb251aaa8e735f106b12d042e | [log] [tgz] |
---|---|---|
author | Hongwei Wang <hwwang@google.com> | Thu Oct 28 16:07:58 2021 -0700 |
committer | Hongwei Wang <hwwang@google.com> | Mon Apr 11 14:33:33 2022 -0700 |
tree | 6d37aaf642c1db6e383ac6169f0d043a43e75f81 | |
parent | 71163eeeb30fe70943ec6e2ed377b349075627b0 [diff] |
Use sourceRectHint to calculate scale when enter PiP This is to patch the entering PiP transition with YT tablet UI, which is used in unfolded state and/or tablets landscape mode. Changed also to use SurfaceControl.Transaction#setCrop instead of deprecated setWindowCrop. Bug: 198309223 Video: http://recall/-/aaaaaabFQoRHlzixHdtY/eODHpvqAQPfbwjFamtRYC1 Test: manual, see video Change-Id: I6fbfea110f9a73faf05ebeb90773dcee58b41328