Skip to content
Permalink
Browse files
fix: support both adaptive and standard icons at the same time (#1001)
  • Loading branch information
breautek committed Jun 18, 2020
1 parent 8d8600b commit d5d448888d6d44b7da90d91db1a286731a2fdc61
Showing 1 changed file with 5 additions and 0 deletions.
@@ -457,6 +457,11 @@ function updateIconResourceForAdaptive (preparedIcons, resourceMap, platformReso
background = android_icons[density].background;
foreground = android_icons[density].foreground;

if (!background || !foreground) {
// This icon isn't an adaptive icon, so skip it
continue;
}

if (background.startsWith('@color')) {
// Colors Use Case
backgroundVal = background; // Example: @color/background_foobar_1

0 comments on commit d5d4488

Please sign in to comment.