commit | 0e27c87af691bc53d320496bbffa58752608608d | [log] [tgz] |
---|---|---|
author | Robin Lee <rgl@google.com> | Mon Sep 28 14:37:40 2015 +0100 |
committer | Robin Lee <rgl@google.com> | Tue Sep 29 14:08:53 2015 +0100 |
tree | b74b3d5d6bb27ec63a17af030e28306da97809af | |
parent | 8392b394f26ef726a002cd380979058203438dc8 [diff] |
Call into PackageManager as mContext, not myUserId ApplicationPackageManager instances can (and sometimes are) created as another user from the one they run in. Example use: fetching the application icon for an app installed as another user. The occurrences that weren't doing this aren't ever called on a cross-user instance so it should be safe enough to fix all of them. Change-Id: Ia63f22942f35450e36a7b8da2bbf8eda360ef21a