fix(android): make the new launcher icon actually show up as an adaptive icon
The icon change landed as a bitmap dropped straight into res/mipmap-anydpi-v26/ and wired to android:icon only, so the installed app kept showing the old art: - android:roundIcon still pointed at @mipmap/ic_launcher (the old vector adaptive icon). Launchers that prefer roundIcon — Pixel Launcher, Samsung One UI — render it in preference to android:icon, so the new bitmap never appeared. Verified on the ow35 emulator drawer: old cyan/green line-art onion while android:icon was already the new PNG. - a bitmap under mipmap-anydpi-v26 is a legacy icon, not an adaptive one: the launcher pads it into the mask itself and it is not density-aware. Now: - drawable-nodpi/onionwire_app_icon.png: the artwork squared to 432x432 with the logo at 62% of the canvas (inside the 66dp/108dp safe zone) over a seamless blurred backdrop of itself, so no launcher mask clips the logo. - mipmap-anydpi-v26/ic_launcher.xml and ic_launcher_round.xml: adaptive icons with that bitmap as the background layer and a transparent foreground. - AndroidManifest.xml: icon=@mipmap/ic_launcher, roundIcon=@mipmap/ic_launcher_round. - Delete the retired vectors (ic_launcher_background/foreground.xml) and the misplaced mipmap-anydpi-v26/onionwire_app_icon.png.
This commit is contained in:
parent
7ad3679b51
commit
faf4d1bb15
7 changed files with 28 additions and 165 deletions
|
|
@ -36,9 +36,9 @@
|
|||
android:allowBackup="false"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="false"
|
||||
android:icon="@mipmap/onionwire_app_icon"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.OnionWire">
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue