fix(android): make the new launcher icon actually display (adaptive icon + roundIcon) #74
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/app-icon-adaptive"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why the new icon never showed up
The icon change landed as a bitmap in
res/mipmap-anydpi-v26/wired toandroid:icononly, and shipped that way in v0.1.0 / v0.2.0 / v0.2.1:android:roundIconstill pointed at@mipmap/ic_launcher-- the old vector adaptive icon. Pixel Launcher, Samsung One UI and MIUI preferroundIconovericon, so they kept rendering the old art. Confirmed on theow35emulator app drawer (old cyan/green line-art onion) while the APK'sandroid:iconwas already the new PNG.mipmap-anydpi-v26is a legacy icon, not an adaptive icon: no mask-safe zone, launcher-generated plate, not density-aware.Fix
drawable-nodpi/onionwire_app_icon.png: the artwork squared to 432x432 with the logo at 62% of the canvas (inside the 66dp/108dp adaptive-icon safe zone) over a seamless blurred backdrop of itself.mipmap-anydpi-v26/ic_launcher.xml+ic_launcher_round.xml: adaptive icons, the bitmap as the background layer, transparent foreground.icon=@mipmap/ic_launcher,roundIcon=@mipmap/ic_launcher_round.ic_launcher_background/foreground.xml) and the misplacedmipmap-anydpi-v26/onionwire_app_icon.png.Verification
:app:assembleDebug(x86_64) and:app:assembleRelease(arm64-v8a) both green locally.application-icon= the adaptive XML at every density;icon/roundIconresolve tores/BW.xml/res/0K.xml, both referencingdrawable/onionwire_app_icon; the bitmaps inside the APK are pixel-identical (RMSE 0) to the source art.ow35emulator: the launcher drawer now shows the new artwork.