dwmkerr/app-icon

bug: 'anydpi' adaptive icons are not rendered correctly

Closed this issue · 1 comments

When generating adaptive icons, the presence of the anydpi folder seems to cause problems:

image

On one device it appears the icon is zoomed in, on the other it has somehow fallen back to an image I cannot even find in the project!

Reproduction Steps

  • Create a new project Android Studio
  • Use the Image Asset Manager to create adaptive icons'
  • Run app-icon init --adaptive-icons && app-icon generate --adaptive-icons
  • Deploy to a device or emulator

OK found the issue:

image

The anydpi_ folder must not contain image resources, the density specific mipmap folders will have their images used. The anydpi folder will just contain xml.