-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add monochrome launcher icon #511
Add monochrome launcher icon #511
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice change, just need to make sure about the API level change
minSdkVersion 21 | ||
minSdkVersion 26 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is changing the minimum API level required here? I'd rather not drop so many (albeit old) Android versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried building the app with the old version and it threw an error stating that the minimum API version is 26. 🤔
More info can be found here: https://developer.android.com/develop/ui/views/launch/icon_design_adaptive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next, in res/mipmap-anydpi-v26/ic_launcher.xml, create alternative drawable resources in your app for backward compatibility with Android 8.0 (API level 26). Use the <adaptive-icon> element to define the foreground, background, and monochromatic layer drawables for your icons. The <foreground>, <background>, and <monochrome> inner elements support the android:drawable attribute.
This was on the site that I provided in the MR description, seems like anything lower than Android 8.0 (API level 26) is no longer supported when monochrome icons are defined.
How about we use |
Sounds good to me 🦾 |
I tried rebasing onto
already tried pulling, fetching and what not but the push is still getting rejected. Sadly I'm not too familiar with GitHub as I mainly work with GitLab. |
@AhegaHOE if you use VS Code, try checking out your branch and the using the "Merge branch" command and select the redesign branch. If that doesn't work, I guess you should be able to perform a |
Merged |
Looking at the changed lines, something seems to have gone awry 🙃 |
In this commit the monochrome launcher icon has been added which enables custom colors for Android users that use the Themed Icons feature. For more info see: https://developer.android.com/develop/ui/views/launch/icon_design_adaptive
That seems a lot better now 😂 |
Yeah, looks good! @jmshrv any idea why the build might be failing? 😅 |
When building I came across the same issue. Running |
In that case, maybe try running these commands and the committing the updated |
Well, the You can try to reproduce it locally:
PS: Somehow I can't build it locally anymore, running into the same exact error as the Pipeline and running
results in the same exact issue. |
There we go 😉 |
Also confirmed that this is working as intended on Android 13 as well 😁 |
What did you end up doing to fix it? |
Yeah go ahead, API 26 is 93% of users (source), so it shouldn't be too bad |
@Chaphasilor no worries and thank you for the information 😁 |
Finally merged :) Thanks a ton! <3 |
It ain't much but I hope that a lot of people will enjoy it! I'm happy to contribute at least a little bit to this awesome project. ^^ |
In this MR the monochrome launcher icon has been added which enables custom colors for Android users that use the Themed Icons feature.
For more info see: https://developer.android.com/develop/ui/views/launch/icon_design_adaptive
Tested on my Device (Google Pixel 6 with Android 14) and it works, the minimum SDK has been bumped to 26 in order to support the monochrome icon.