Using WidgetInflater in loader task

This removes duplicate logic for widget inflation.
Since the widget inflation can now happen during loader,
the restore logging can also be moved completely to the loader

Bug: 318539160
Test: atest TaplBinderTests
Flag: None
Change-Id: If9f336e7bf49ee7df121d7d9852b674d98124895
This commit is contained in:
Sunny Goyal
2024-01-10 12:03:30 -08:00
parent 64614a1ec6
commit d24d33925a
17 changed files with 237 additions and 400 deletions

View File

@@ -39,13 +39,16 @@ public interface CustomWidgetPlugin extends Plugin {
/**
* Get the UUID for the custom widget.
*
* @deprecated Not used
*/
String getId();
@Deprecated
default String getId() {
return "";
}
/**
* Used to modify a widgets' info.
*/
default void updateWidgetInfo(AppWidgetProviderInfo info, Context context) {
}
default void updateWidgetInfo(AppWidgetProviderInfo info, Context context) { }
}