Settings not showing print jobs for a managed profile.

The settings app is shared among the personal and work profiles.
When fetching print jobs it was not getting the ones for the work
profile, rather the ones for the current user which is the personal
profile.

bug:18867406

Change-Id: I99f8cf3a3e2b133a0a4d5a8915473d1190e205f4
This commit is contained in:
Svetoslav
2015-01-13 18:48:29 -08:00
parent 718c4d9b19
commit 6cfe799654
2 changed files with 2 additions and 2 deletions

View File

@@ -465,7 +465,7 @@ public class PrintSettingsFragment extends SettingsPreferenceFragment
super(context);
mPrintManager = ((PrintManager) context.getSystemService(
Context.PRINT_SERVICE)).getGlobalPrintManagerForUser(
ActivityManager.getCurrentUser());
context.getUserId());
}
@Override