Default icon should match platform one even on N and below devices.

Bug: 63083094

Change-Id: Ie08ccaf63a49fa766f0d51d840d7763fc4bf2a5a
This commit is contained in:
Hyunyoung Song
2017-07-05 11:51:56 -07:00
parent 35005ef213
commit b8ae2dd2af

View File

@@ -120,7 +120,8 @@ public class IconCache {
}
private Drawable getFullResDefaultActivityIcon() {
return getFullResIcon(Resources.getSystem(), android.R.drawable.sym_def_app_icon);
return getFullResIcon(Resources.getSystem(), Utilities.isAtLeastO() ?
android.R.drawable.sym_def_app_icon : android.R.mipmap.sym_def_app_icon);
}
private Drawable getFullResIcon(Resources resources, int iconId) {