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 { try {
for (NotificationHRConfiguration configuration : this.notificationConfigurations){ for (NotificationHRConfiguration configuration : this.notificationConfigurations){
if(configuration.getPackageName().equals(notificationSpec.sourceAppId)){ 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; return true;
} }
} }
queueWrite(new PlayNotificationRequest("generic", notificationSpec.sourceName, notificationSpec.body, this)); queueWrite(new PlayNotificationRequest("generic", notificationSpec.sender, notificationSpec.body, this));
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(); e.printStackTrace();
} }