mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-23 12:33:53 +00:00
Adds basic subtext to notification
This commit is contained in:
1 parent
0909a08c94
commit
f4b99442ae
1 file changed
+4
-4
+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) {
|
||||
|
||||
Reference in new issue
Block a user