summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Simranjit Kohli <simranjit@google.com> 2024-09-30 14:45:02 -0700
committer Simranjit Kohli <simranjit@google.com> 2024-09-30 15:58:20 -0700
commit6b3c9de599fc69762c137e8d4a87e089303b6e17 (patch)
treee4d417d8bd95dbe3982015bbdd76fece7684fd4e /libs/androidfw/StringPool.cpp
parent9046c896fbbc49a38fa33d17e3f6a856bb164209 (diff)
[Autofill] : Fix save regression with relayout
TrackedViews are saved without session ids. However, when relayout is enabled without relative position, session id was being attached to the autofill ids. This can be problematic, as the autofill ids saved with tracked views now contain session ids, but don't match the hashCode of when they were put into the tracking set. As such, when those views become invisible, the corresponding autofill id's aren't removed from the visible set. As such, save isn't shown. This fix removes setting the session id when enable_relayout is enabled. Bug: 369882186 Test: atest android.autofillservice.cts.dropdown.AuthenticationTest#testDatasetAuthThenModifyAndSaveOnViewsInvisible Run the following test with the following setup adb shell device_config put autofill enable_relayout true; adb shell device_config put autofill enable_relative_location_for_relayout false; This test fails without this change, but passes with this change. Flag: EXEMPT : DeviceConfig flags used: enable_relayout Change-Id: Idd65578f6ce1bfe04e221c569a33b62d7a98b4b4
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions