mirror of
https://github.com/MatomoCamp/matomocamp-companion-android.git
synced 2024-09-19 16:13:46 +02:00
Notifications display change: show room name in the bottom right corner
below the time, and show the track name first in subtitle before the speakers.
This commit is contained in:
parent
a9c9c40a46
commit
a2d67fbb91
1 changed files with 2 additions and 2 deletions
|
@ -140,8 +140,8 @@ public class AlarmIntentService extends IntentService {
|
||||||
}
|
}
|
||||||
|
|
||||||
Notification notification = new NotificationCompat.Builder(this).setSmallIcon(R.drawable.ic_launcher).setWhen(event.getStartTime().getTime())
|
Notification notification = new NotificationCompat.Builder(this).setSmallIcon(R.drawable.ic_launcher).setWhen(event.getStartTime().getTime())
|
||||||
.setContentTitle(event.getTitle()).setContentText(String.format("%1$s - %2$s", event.getRoomName(), event.getPersonsSummary()))
|
.setContentTitle(event.getTitle()).setContentText(String.format("%1$s - %2$s", event.getTrack().getName(), event.getPersonsSummary()))
|
||||||
.setContentInfo(event.getTrack().getName()).setContentIntent(eventPendingIntent).setAutoCancel(true).setDefaults(defaultFlags)
|
.setContentInfo(event.getRoomName()).setContentIntent(eventPendingIntent).setAutoCancel(true).setDefaults(defaultFlags)
|
||||||
.setPriority(NotificationCompat.PRIORITY_DEFAULT).build();
|
.setPriority(NotificationCompat.PRIORITY_DEFAULT).build();
|
||||||
notificationManager.notify(eventId, notification);
|
notificationManager.notify(eventId, notification);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue