commit | 39686e8cdec3550c941d376929084f59ac0d78cd | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Wed Apr 13 18:03:00 2016 -0700 |
committer | Makoto Onuki <omakoto@google.com> | Fri Apr 15 12:33:15 2016 -0700 |
tree | bd1799cdb736b4fb91216ae4fcb2c1553938e432 | |
parent | 067f821ec84d3bcb556a8de77f3e3d3b8c042186 [diff] [blame] |
When app is updated, save the new version code, and update shortcuts with resource based icons. Bug 28152054 Change-Id: I14f537c08b1a0ba48dd508b0c42fc1d3ed4f5eb0
diff --git a/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java b/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java index d09b62c..ad49c2f 100644 --- a/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java +++ b/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java
@@ -413,6 +413,16 @@ } } + public static ShortcutInfo findShortcut(List<ShortcutInfo> list, String id) { + for (ShortcutInfo si : list) { + if (si.getId().equals(id)) { + return si; + } + } + fail("Shortcut " + id + " not found in the list"); + return null; + } + public static Bitmap pfdToBitmap(ParcelFileDescriptor pfd) { assertNotNull(pfd); try {