summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfo.cpp
diff options
context:
space:
mode:
author Mark Punzalan <markpun@google.com> 2022-05-26 21:46:29 +0000
committer Mark Punzalan <markpun@google.com> 2022-05-26 23:57:13 +0000
commita695631475b36d73c799c8363eea0d1f10b26a61 (patch)
treef2c3a6b71c8fa4598b48abab76c2a82bfb7d8565 /libs/hwui/FrameInfo.cpp
parent27a45d8ec3003009c0fdee717310a7d9c858e9d0 (diff)
Don't clear translation state on temporary detachment.
Change I97cc418a8 broke translation on apps which use ListView; messages were re-translated with the animation even while on-screen. A new message arrival triggers a re-layout which causes the temporary detachment, which caused translation to be cleared, and the views get translated again later. The solution is to NOT clear translation in the case of temporary detachment. When Views are actually recycled (e.g., by ListView and RecyclerView), the detachment is permanent/non-temporary. Bug: 232178488 Test: atest UiTranslationManagerTest Test: Manual - Verified scrolling and new messages arriving when translation is enabled. Tested on apps that use ListView and RecyclerView. Change-Id: Ibf1be58219c43252e00b06d4c9e27def5bd36fc2
Diffstat (limited to 'libs/hwui/FrameInfo.cpp')
0 files changed, 0 insertions, 0 deletions