diff --git a/app/src/main/java/org/unifiedpush/distributor/nextpush/services/NotificationUtils.kt b/app/src/main/java/org/unifiedpush/distributor/nextpush/services/NotificationUtils.kt index 75ce478..e3e0145 100644 --- a/app/src/main/java/org/unifiedpush/distributor/nextpush/services/NotificationUtils.kt +++ b/app/src/main/java/org/unifiedpush/distributor/nextpush/services/NotificationUtils.kt @@ -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) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1d775b1..2c92f6b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -5,7 +5,7 @@ Registered applications - Listening for incoming notifications + Notification to run in the foreground Login You are not connected to Nextcloud yet Logout @@ -18,7 +18,7 @@ Restart Service NextPush is disconnected Warning - Listening + Foreground Nextcloud Files is not installed on your device.\nPlease install it market://details?id=com.nextcloud.client Market