Amazfit Bip: Use AlertCategory.Email for email
Somehow the custom icon for email no longer works with never firmwares
This commit is contained in:
parent
c468e7f521
commit
f39d8cd2e2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue