summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Roy Chou <juchengchou@google.com> 2023-04-17 14:08:30 +0000
committer Roy Chou <juchengchou@google.com> 2023-04-19 11:02:42 +0000
commitc5c1eb4d50c39700b1ccdd1de4837b524ada5cf7 (patch)
tree8d4f0f2999409a0d3ef1d021b1b27b7c4684b2c0 /libs/androidfw/ApkParsing.cpp
parent3f09839e1dee4a3cabad3f300a2a78b897631d09 (diff)
chore(#MagnificationThumbnail): add feature flag file and fix size not correct sometimes
We add MagnificationThumbnailFeatureFlag to encapsulates the feature flag from directly access in FullScreenMagnificationController. MagnificationThumbnailFeatureFlag is extended from MagnificationFeatureFlagBase so we can clear binder identity before access the flag. Besides, FullScreenMagnificationController can observe feature flag flips and create/destroy the thumbnail. Originally the thumbnail size would be huge sometimes. It's because the thumbnail layout size is not updated properly based on the magnification bounds before it shows on screen. Therefore, we call refreshThumbnail to update the size when the thumbnail is just created in FullScreenMagnificationController. Bug: 276979625 Bug: 276314641 Test: manually test with adb to flip the flag atest FullScreenMagnificationControllerTest Change-Id: I1480b73454ad32f2a294bace56a285ae462119d8
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions