mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
2bcbde60fe
We want to use the classic, non-adaptive icon again as our launcher icon on Android versions prior to Oreo, as well as to continue using it in various places within our app. Unfortunately this means that we still have to provide duplicate resources for those two purposes: Because we don't want to use the adaptive icon internally, we can't use the same resource directly for both internal usage and our launcher icon, because other- wise on Oreo and above we'd receive the adaptive icon that way. One possible workaround would have been to use the PNG files of our classic icon directly as a drawable for internal useage and then create a differently named XML bitmap for our launcher icon, which in turn would be overridden by the adaptive icon on Oreo and above. Unfortunately, modern usage demands that the launcher icon should be provided as a mipmap resource, where XML bitmaps - aren't officially supported - unofficially work with some devices/launchers, but not all. Therefore, our only choice is to provide separate drawables for our internal icon and our launcher icon, even if prior to Android O both will have the same contents. We'll also get rid of the separate round icon again, since - on Android O and above, both round and non-round icon were using the same adaptive icon anyway - prior to Android O our normal icon is already round enough (ignoring the Fennec icon for local developer builds) --HG-- extra : source : 6183adcbfc9d81ab0cb854a4734a98f10a897d6b extra : amend_source : dc14ea076aafd9d24fd5ee7aebcf71348812942c |
||
---|---|---|
.. | ||
android | ||
locales |