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

Commit 9f4d8440 authored by Rohit Goyal's avatar Rohit Goyal
Browse files

Exclude condition to return early in case of empty activity list in LauncherApps::getActivityList.

Test: atest LauncherAppsTest
Bug: 308076259
Change-Id: If7b14656a041d62aa24361db68f5350cf7f8393b
parent a6cb68cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -540,7 +540,7 @@ public class LauncherAppsService extends SystemService {
                    == 0) {
                return launcherActivities;
            }
            if (launcherActivities == null || launcherActivities.getList().isEmpty()) {
            if (launcherActivities == null) {
                // Cannot access profile, so we don't even return any hidden apps.
                return null;
            }