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

Skip to content
Commit 380d8d52 authored by Willie Koomson's avatar Willie Koomson
Browse files

Delete generated preview file if corrupted

Update AppWidgetServiceImpl so that if it fails to read a generated
preview file, the file is deleted and providers are updated.

This change also updates the service to keep previews after a provider
app updates. Since we now delete previews files if they cannot be read
into RemoteViews, we do not need to worry about missing resource IDs
after an app update.

Bug: 364420494
Test: atest CtsAppWidgetHostTestCases
Flag: android.appwidget.flags.remote_views_proto
Change-Id: I7f4a8aa6c73471c176aa75f2e47627ad8574ce3a
parent 9ef0692a
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