Updating the ui for widget restore flow
> Pending widget show a PreloadIconDrawable to indicate installation progress > Only the concerned widgets are reinflated on package install and not the whole workspace. > Adding support for storing default package icon in IconCache issue: 10779035 issue: 16737660 Change-Id: Id787ae4a5ef72d6e01aeb5a1bae5ab8840037679
This commit is contained in:
1 parent
0fe505bf82
commit
0fc1be164e
20 files changed
+317
-99
No files matched your search
@@ -3089,7 +3089,7 @@ public class LauncherModel extends BroadcastReceiver
|
||||
info.user = UserHandleCompat.myUserHandle();
|
||||
info.contentDescription = mUserManager.getBadgedLabelForUser(
|
||||
info.title.toString(), info.user);
|
||||
info.setIcon(mIconCache.getIcon(intent, info.title.toString(), info.user));
|
||||
info.setIcon(mIconCache.getIcon(intent, info.title.toString(), info.user, false));
|
||||
info.itemType = LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT;
|
||||
info.restoredIntent = intent;
|
||||
info.wasPromise = true;
|
||||
@@ -3378,7 +3378,7 @@ public class LauncherModel extends BroadcastReceiver
|
||||
/**
|
||||
* Attempts to find an AppWidgetProviderInfo that matches the given component.
|
||||
*/
|
||||
AppWidgetProviderInfo findAppWidgetProviderInfoWithComponent(Context context,
|
||||
static AppWidgetProviderInfo findAppWidgetProviderInfoWithComponent(Context context,
|
||||
ComponentName component) {
|
||||
List<AppWidgetProviderInfo> widgets =
|
||||
AppWidgetManager.getInstance(context).getInstalledProviders();
|
||||
|
||||
Reference in new issue
Block a user