mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Use category icon for pending conversation widgets
Fix: 192333050 Test: Manual Change-Id: Ie3895cd4747f1bec1c8ca9af82347bb0eafa7415
This commit is contained in:
@@ -225,6 +225,14 @@ public class WidgetsModel {
|
||||
return null;
|
||||
}
|
||||
|
||||
/** Returns {@link PackageItemInfo} of a pending widget. */
|
||||
public static PackageItemInfo newPendingItemInfo(ComponentName provider) {
|
||||
if (CONVERSATION_WIDGET.equals(provider)) {
|
||||
return new PackageItemInfo(provider.getPackageName(), PackageItemInfo.CONVERSATIONS);
|
||||
}
|
||||
return new PackageItemInfo(provider.getPackageName());
|
||||
}
|
||||
|
||||
private WidgetPackageOrCategoryKey getWidgetPackageOrCategoryKey(WidgetItem item) {
|
||||
if (CONVERSATION_WIDGET.equals(item.componentName)) {
|
||||
return new WidgetPackageOrCategoryKey(PackageItemInfo.CONVERSATIONS, item.user);
|
||||
|
||||
Reference in New Issue
Block a user