Change notification wording
This commit is contained in:
parent
38261e570c
commit
e8ce207517
|
@ -28,7 +28,7 @@ fun createForegroundNotification(context: Context): Notification {
|
|||
appName,
|
||||
NotificationManager.IMPORTANCE_LOW
|
||||
).let {
|
||||
it.description = context.getString(R.string.listening_notif_description)
|
||||
it.description = context.getString(R.string.foreground_notif_description)
|
||||
it
|
||||
}
|
||||
notificationManager.createNotificationChannel(channel)
|
||||
|
@ -50,9 +50,9 @@ fun createForegroundNotification(context: Context): Notification {
|
|||
|
||||
return builder
|
||||
.setContentTitle(context.getString(R.string.app_name))
|
||||
.setContentText(context.getString(R.string.listening_notif_description))
|
||||
.setContentText(context.getString(R.string.foreground_notif_description))
|
||||
.setSmallIcon(R.drawable.ic_launcher_notification)
|
||||
.setTicker(context.getString(R.string.listening_notif_ticker))
|
||||
.setTicker(context.getString(R.string.foreground_notif_ticker))
|
||||
.setPriority(Notification.PRIORITY_LOW) // for under android 26 compatibility
|
||||
.setContentIntent(intent)
|
||||
.setOngoing(true)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<string name="main_applications_title">Registered applications</string>
|
||||
|
||||
<string name="help"></string>
|
||||
<string name="listening_notif_description">Listening for incoming notifications</string>
|
||||
<string name="foreground_notif_description">Notification to run in the foreground</string>
|
||||
<string name="connection_button">Login</string>
|
||||
<string name="connection_description">You are not connected to Nextcloud yet</string>
|
||||
<string name="action_logout">Logout</string>
|
||||
|
@ -18,7 +18,7 @@
|
|||
<string name="action_restart">Restart Service</string>
|
||||
<string name="warning_notif_description">NextPush is disconnected</string>
|
||||
<string name="warning_notif_ticker">Warning</string>
|
||||
<string name="listening_notif_ticker">Listening</string>
|
||||
<string name="foreground_notif_ticker">Foreground</string>
|
||||
<string name="message_missing_nextcloud_app">Nextcloud Files is not installed on your device.\nPlease install it</string>
|
||||
<string name="uri_market_nextcloud_app">market://details?id=com.nextcloud.client</string>
|
||||
<string name="market_chooser_title">Market</string>
|
||||
|
|
Loading…
Reference in New Issue