summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorfelkachang <felkachang@google.com>2018-07-26 19:06:30 +0800
committerFelka Chang <felkachang@google.com>2018-11-07 03:37:52 +0000
commit6eb868a5e56716f5abc23ea3495a86c43a2e7555 (patch)
tree576f08d4633464daf4df857b331312a753ec0abb /tools/aapt2/java/JavaClassGenerator.cpp
parent29226627d0898713558c4e03d237d100796d7d53 (diff)
Fix the wrong number of icons in shelf for RTL
In NotificationShelf, mShelfIcons.setActualLayoutWidth's parameter comes from the return value of mCollapsedIcons.getFinalTranslationX. both of mCollapsedIcons.getFinalTranslationX and 'start' has the operator '+' and mCollapsedIcons.getFinalTranslationX should return the value that doesn't translate to the xTranslation. The root cause is that mCollapsedIcons.getFinalTranslationX should return the 'start tranlation' rather xTranslation. The solution is to make the mixing usage between 'start tranlation' and xTranslation to be seperated. And, 'start translation' is called xAnchorStart. To get the 'start translation' by counting (getWidth() - mLastVisibleIconState.xTranslation - iconWidth) to get xAnchorStart. Change-Id: Iec6893446ba161cce50e9b018e43f94782b91f11 Merged-In: Iec6893446ba161cce50e9b018e43f94782b91f11 Fixes: 111861498 Test: manual test (cherry picked from commit b623343f1324b0d1c5baa01260d789c371ad0849)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions