commit | a709314537164d959a18ee78768c69c4a9cb33c7 | [log] [tgz] |
---|---|---|
author | Alexandra Gherghina <alexgherghina@google.com> | Wed Jul 30 13:43:39 2014 +0100 |
committer | Alexandra Gherghina <alexgherghina@google.com> | Thu Jul 31 15:43:11 2014 +0000 |
tree | 7d882c9d5eb6f85ea5d6cf792118f3b3fa63e596 | |
parent | 9d8ca0f010a752d078023dee833c7b2131210291 [diff] [blame] |
Use the appropriate default icon ComponentInfo subclasses and ApplicationInfo have different ways to retrieving the default icon. Previously, in CL I2db300a69a08030eacc245ee91556f0443ba5878 we defaulted everything to the green Android. This makes sure that they get the right default. Bug: 16630068 Change-Id: Ifa499eac6f1543523d6ecf0831175bfd6b772edb
diff --git a/core/java/android/content/pm/ApplicationInfo.java b/core/java/android/content/pm/ApplicationInfo.java index 482ad6e..548a0c9 100644 --- a/core/java/android/content/pm/ApplicationInfo.java +++ b/core/java/android/content/pm/ApplicationInfo.java
@@ -839,7 +839,8 @@ /** * @hide */ - @Override protected Drawable loadDefaultIcon(PackageManager pm) { + @Override + public Drawable loadDefaultIcon(PackageManager pm) { if ((flags & FLAG_EXTERNAL_STORAGE) != 0 && isPackageUnavailable(pm)) { return Resources.getSystem().getDrawable(