Use the new API being introduced in I34e9f351d2a8addf
Bug: 34340531 Test: Manual tests Change-Id: I5c4a95edb7008bbd5723f87249cbc68c06f82234
This commit is contained in:
@@ -57,7 +57,7 @@ public class AppListFragment extends MyBaseListFragment {
|
||||
|
||||
final List<LauncherActivityInfo> apps = new ArrayList<>();
|
||||
|
||||
for (UserHandle user : mUserManager.getUserProfiles()) {
|
||||
for (UserHandle user : mLauncherApps.getProfiles()) {
|
||||
apps.addAll(mLauncherApps.getActivityList(null, user));
|
||||
}
|
||||
Collections.sort(apps, sLauncherIconComparator);
|
||||
|
||||
@@ -82,7 +82,7 @@ public class ShortcutListFragment extends MyBaseListFragment {
|
||||
private List<UserHandle> getTargetUsers() {
|
||||
final UserHandle arg = getArguments().getParcelable(ARG_USER);
|
||||
if (arg == null) {
|
||||
return mUserManager.getUserProfiles();
|
||||
return mLauncherApps.getProfiles();
|
||||
} else {
|
||||
final List<UserHandle> ret = new ArrayList<>();
|
||||
ret.add(arg);
|
||||
|
||||
Reference in New Issue
Block a user