1
0
Fork 0
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:
Christophe Beyls 2014-01-10 01:43:54 +01:00
parent a9c9c40a46
commit a2d67fbb91

View file

@ -140,8 +140,8 @@ public class AlarmIntentService extends IntentService {
}
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()))
.setContentInfo(event.getTrack().getName()).setContentIntent(eventPendingIntent).setAutoCancel(true).setDefaults(defaultFlags)
.setContentTitle(event.getTitle()).setContentText(String.format("%1$s - %2$s", event.getTrack().getName(), event.getPersonsSummary()))
.setContentInfo(event.getRoomName()).setContentIntent(eventPendingIntent).setAutoCancel(true).setDefaults(defaultFlags)
.setPriority(NotificationCompat.PRIORITY_DEFAULT).build();
notificationManager.notify(eventId, notification);
}