summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Aaron Liu <aaronjli@google.com> 2023-06-06 13:12:59 -0700
committer Aaron Liu <aaronjli@google.com> 2023-06-07 16:38:46 +0000
commit742402a93f0f2a917e46e4570f66fe2128402f76 (patch)
tree9853c4660dbaefca381107b908980338f938db16 /libs/androidfw/FileStream.cpp
parent93b38f5b313dd9e0f4cfd09845ff52d951d9191c (diff)
Set gravity to end if we begin clipping subviews.
In the pin view, after a certain number of pin inputs, the pin dots begin to get cut off. This is because the gravity is centered. During the layout pass, we calculate what to set the gravity to. We use the local visible rect to determine if the first child (the leftmost dot) is clipped or not visible. This will help us indicate whether we are overflowing. In this case we want to justify all of the dots to the end. Otherwise, we want to remain centered. Fixes: 285576678 Test: Tested non hinting pin view with overflow. Tested deletion and full deletion as well. Change-Id: I037f265ec80b1a105f0658217adc4383a3181987
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions