summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorYuri Lin <yurilin@google.com>2021-04-14 15:24:50 -0400
committerYuri Lin <yurilin@google.com>2021-04-15 14:12:03 -0400
commit8b08e82d3185b2bba3c51e7d6ca204073a235f8d (patch)
tree47d624c38b69fbf113b90092ec42a817a2bfabd7 /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta6d011d092ccb5ef8310d532239e9a9a962ebacf (diff)
Add method to remove file from history based on matching file path.
NotificationHistoryDatabase sometimes attempts to read a file that doesn't exist; this happens because scheduled history file deletions (for files >24h old) weren't correctly removing AtomicFiles from the mHistoryFiles list due to using the built in LinkedList remove() method. The new method explictly removes the first file in history matching the file path deleted, rather than attempting to use AtomicFile equality. Test: atest NotificationHistoryDatabaseTest; manually verified that NotiHistoryDatabase stopped erroring Fixes: 185257041 Change-Id: I56c4a3293166a84e29920afe5549171becdaa496
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions