Use the new API being introduced in I34e9f351d2a8addf

Bug: 34340531
Test: Manual tests
Change-Id: I5c4a95edb7008bbd5723f87249cbc68c06f82234
This commit is contained in:
Makoto Onuki
2017-01-19 15:19:04 -08:00
parent 7fb7f2bca1
commit 0778a898f4
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);