1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 10:35:50 +01:00

Amazfit Bip: Use AlertCategory.Email for email

Somehow the custom icon for email no longer works with never firmwares
This commit is contained in:
Andreas Shimokawa 2017-09-02 23:24:52 +02:00
parent c468e7f521
commit f39d8cd2e2

View File

@ -89,6 +89,10 @@ public class AmazfitBipSupport extends MiBand2Support {
if (notificationSpec.type == NotificationType.GENERIC_SMS) {
alertCategory = AlertCategory.SMS;
}
// EMAIL icon does not work in FW 0.0.8.74, it did in 0.0.7.90
else if (notificationSpec.type == NotificationType.GENERIC_EMAIL) {
alertCategory = AlertCategory.Email;
}
NewAlert alert = new NewAlert(alertCategory, 1, message, customIconId);
profile.newAlert(builder, alert);