mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-09 15:27:04 +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:
parent
6244bdd745
commit
9cd4ee0f29
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user