mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Merge "Avoid sending FirstScreenBroadcast if there is nothing to send."
This commit is contained in:
@@ -135,6 +135,13 @@ public class FirstScreenBroadcast {
|
||||
printList(installerPackageName, "Widget item", widgetItems);
|
||||
}
|
||||
|
||||
if (folderItems.isEmpty()
|
||||
&& workspaceItems.isEmpty()
|
||||
&& hotseatItems.isEmpty()
|
||||
&& widgetItems.isEmpty()) {
|
||||
// Avoid sending broadcast if there is nothing to send.
|
||||
return;
|
||||
}
|
||||
context.sendBroadcast(new Intent(ACTION_FIRST_SCREEN_ACTIVE_INSTALLS)
|
||||
.setPackage(installerPackageName)
|
||||
.putStringArrayListExtra(FOLDER_ITEM_EXTRA, new ArrayList<>(folderItems))
|
||||
|
||||
Reference in New Issue
Block a user