summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetManager.cpp
diff options
context:
space:
mode:
author Miranda Kephart <mkephart@google.com> 2024-05-16 11:09:50 -0400
committer Miranda Kephart <mkephart@google.com> 2024-05-23 19:09:01 +0000
commit7671c23bd01136a0f4aca7298070eafbda72ac73 (patch)
tree8b559c9347390f9673f483831ec06ca870d4e6cb /libs/androidfw/AssetManager.cpp
parent3d7c06c129b2845192bafb574e29fe418f7e2a6d (diff)
Add ScreenshotActionsController between provider and viewModel
The asynchronicity of various processes in screenshots/action providers means that we can show actions that are associated with the wrong screenshot (see bug for details). This change removes direct access from the ScreenshotActionProvider to the ScreenshotViewModel, and instead abstracts out the action providers to a ScreenshotActionsController that only updates the ViewModel if the actions are associated with the current "live" screenshot. Bug: 341062985 Fix: 341062985 Flag: com.android.systemui.screenshot_shelf_ui2 Test: manual via taking several screenshots in succession Test: atest ScreenshotActionsControllerTest Change-Id: Ie18396172239b30218372229630da3d3d716406b
Diffstat (limited to 'libs/androidfw/AssetManager.cpp')
0 files changed, 0 insertions, 0 deletions