Adds basic subtext to notification

This commit is contained in:
Bennet Brunsen committed 2015-07-06 09:56:54 +02:00
1 parent 0909a08c94
commit f4b99442ae
1 file changed
+4 -4
@@ -298,11 +298,11 @@ public class TrackingService extends Service implements GoogleApiClient.Connecti
Notification notification = new NotificationCompat.Builder(this)
.setContentTitle(getText(R.string.app_name))
.setContentText(event.name).setContentIntent(pi)
.setSmallIcon(R.drawable.ic_launcher).
setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher))
.setSubText(event.server)
.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher))
.setSmallIcon(R.drawable.ic_launcher)
.setOngoing(true).build();
notification.flags |= Notification.FLAG_NO_CLEAR;
startForeground(NOTIFICATION_ID, notification);
notificationManager.notify(NOTIFICATION_ID, notification);
}
public void registerGPSQualityListener(GPSQualityListener listener) {