Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93f84e5a authored by Willie Koomson's avatar Willie Koomson
Browse files

Save generated previews in AppWidgetService

This change updates AppWidgetServiceImpl to persist generated
previews in /data/system_ce/<user>/appwidget/previews. Each file
contains the previews for a single provider, written as a
GeneratedPreviewsProto message.

Previews are cleared when a provider app is updated, deleted
(PACKAGE_REMOVED) or its data is cleared (PACKAGE_DATA_CLEARED).

Also updates the bug for the feature flag to the correct number.

Test: Manual, set previews and reboot, then clear data and remove
 package.
Test: AppWidgetTest#testGeneratedPreviewPersistence
Bug: 364420494
Flag: android.appwidget.flags.remote_views_proto
Change-Id: I92e115602202efd1c2964364bc3ef32fda0ae472
parent 705c4de6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment