mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 05:23:51 +00:00
changes notification texts
This commit is contained in:
1 parent
f4b99442ae
commit
c3822f385e
3 files changed
+4
-2
No files matched your search
@@ -72,4 +72,6 @@
|
||||
<string name="gps_turned_off">GPS ist nicht aktiviert. Bitte aktivieren Sie den Standortzugriff (GPS) in Ihren Android-Einstellungen!</string>
|
||||
<string name="knots">Knoten</string>
|
||||
<string name="preferences">Einstellungen</string>
|
||||
<string name="tracking_notification_text">Tracking läuft für %s</string>
|
||||
|
||||
</resources>
|
||||
@@ -58,4 +58,5 @@
|
||||
<string name="initial_hyphen" translatable="false">-</string>
|
||||
<string name="initial_hyphen_degrees" translatable="false">-°</string>
|
||||
<string name="content_description_flag_icon" translatable="false">flag icon</string>
|
||||
<string name="tracking_notification_text">Currently Tracking %s</string>
|
||||
</resources>
|
||||
+1
-2
@@ -297,8 +297,7 @@ public class TrackingService extends Service implements GoogleApiClient.Connecti
|
||||
PendingIntent pi = PendingIntent.getActivity(this, 0, intent, 0);
|
||||
Notification notification = new NotificationCompat.Builder(this)
|
||||
.setContentTitle(getText(R.string.app_name))
|
||||
.setContentText(event.name).setContentIntent(pi)
|
||||
.setSubText(event.server)
|
||||
.setContentText(getString(R.string.tracking_notification_text, event.name)).setContentIntent(pi)
|
||||
.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher))
|
||||
.setSmallIcon(R.drawable.ic_launcher)
|
||||
.setOngoing(true).build();
|
||||
|
||||
Reference in new issue
Block a user