summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Roy Chou <juchengchou@google.com> 2023-04-17 14:49:35 +0000
committer Roy Chou <juchengchou@google.com> 2023-04-20 04:57:45 +0000
commiteaab4f2517c48157bdeca328ee49af80c39c9025 (patch)
tree6105d3966934990b1d4bc768f6619532697ba6c9 /libs/androidfw/ZipFileRO.cpp
parentc5c1eb4d50c39700b1ccdd1de4837b524ada5cf7 (diff)
fix(#MagnificationThumbnail): thumbnail magnifying area position is not correct sometimes
In MagnificationThumbnail, mThumbnailView size is 0 when the layout has not added to windowManager ever, and thus the magnifying area position x/y calculations would not be correct. Therefore, we use the magnification bounds to calculate the estimated size if the size is 0. If the mThumbnailView is added to window and its size is update properly, we can use the real size to calculate the magfying area x/y after. Bug: 278509054 Test: manually atest MagnificationThumbnailTest Change-Id: Ifdc84b178e264694061b3b15cbb496ab8f0374b3
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions