1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

Fossil HR: display sender instead of App Name

(in the long run we need more icons to distinguish)
This commit is contained in:
Andreas Shimokawa 2020-01-29 20:27:07 +01:00
parent 6244bdd745
commit 9cd4ee0f29

View File

@ -451,11 +451,11 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
try {
for (NotificationHRConfiguration configuration : this.notificationConfigurations){
if(configuration.getPackageName().equals(notificationSpec.sourceAppId)){
queueWrite(new PlayNotificationRequest(notificationSpec.sourceAppId, notificationSpec.sourceName, notificationSpec.body, this));
queueWrite(new PlayNotificationRequest(notificationSpec.sourceAppId, notificationSpec.sender, notificationSpec.body, this));
return true;
}
}
queueWrite(new PlayNotificationRequest("generic", notificationSpec.sourceName, notificationSpec.body, this));
queueWrite(new PlayNotificationRequest("generic", notificationSpec.sender, notificationSpec.body, this));
}catch (Exception e){
e.printStackTrace();
}