Skip to content
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

Only category CustomHuami should have icon in header #333

Merged
merged 1 commit into from
Jan 14, 2024

Conversation

jmlich
Copy link
Contributor

@jmlich jmlich commented Jan 14, 2024

The implementation in GadgetBridge sends icon only when the

        if (alert.getCategory() == AlertCategory.CustomHuami) {

See https://github.com/Freeyourgadget/Gadgetbridge/blob/275deb4d06de6b64c0d7e73d13f6f2ad2879fe25/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/profiles/alertnotification/AlertNotificationProfile.java#L106

The same issue was basically with Phone Calls #286, which contain category IncomingCall, so icon byte is not expected.

Additionally, mapSenderToIcon() was triggered twice even icon variable already contain the result.

@piggz piggz merged commit 2ff6cb8 into piggz:master Jan 14, 2024
3 checks passed
@jmlich jmlich deleted the huami-3bytes-header branch January 15, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants