| commit | 61cf70466604eb14ed6d6d7c098a0e882796cad0 | [log] [tgz] |
|---|---|---|
| author | Makoto Onuki <omakoto@google.com> | Thu Apr 07 11:41:50 2016 -0700 |
| committer | Makoto Onuki <omakoto@google.com> | Thu Apr 07 11:41:50 2016 -0700 |
| tree | 399228edf45dba9fb5ab88b45cf61fddad14baae | |
| parent | 5bd712b6af1e563c86208a7162d4a67a93caf3d2 [diff] |
Update for the API changes. Bug 28053541 Change-Id: I86329c3e55a4c29539215953c1406f4d636f3f34
diff --git a/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/ShortcutAdapter.java b/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/ShortcutAdapter.java index c70ea3a..83f778c 100644 --- a/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/ShortcutAdapter.java +++ b/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/ShortcutAdapter.java
@@ -175,13 +175,13 @@ final Resources res = mContext.getPackageManager().getResourcesForApplication( si.getPackageName()); icon = BitmapFactory.decodeResource(res, - mLauncherApps.getShortcutIconResId(si, Process.myUserHandle())); + mLauncherApps.getShortcutIconResId(si)); } catch (NameNotFoundException e) { Log.w(TAG, "Unable to load icon from " + si.getPackageName(), e); } } else if (si.hasIconFile()) { - icon = pfdToBitmap(mLauncherApps.getShortcutIconFd(si, Process.myUserHandle())); + icon = pfdToBitmap(mLauncherApps.getShortcutIconFd(si)); } image.setImageBitmap(icon); }