Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package com.nextcloud.client.jobs.upload

import android.app.PendingIntent
import android.content.Context
import androidx.core.app.NotificationCompat
import com.nextcloud.client.jobs.notification.WorkerNotificationManager
import com.nextcloud.utils.numberFormatter.NumberFormatter
import com.owncloud.android.R
Expand Down Expand Up @@ -51,6 +52,10 @@ class UploadNotificationManager(private val context: Context, viewThemeUtils: Vi
setContentText(progressText)
setOngoing(false)
clearActions()
setStyle(
NotificationCompat.BigTextStyle()
.bigText(context.getString(R.string.upload_notification_manager_content_intent_description))
)
addAction(UploadBroadcastAction.PauseAndCancel(operation).pauseAction(context))
addAction(UploadBroadcastAction.PauseAndCancel(operation).cancelAction(context))
setContentIntent(startIntent)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ object UploadErrorNotificationManager {
setProgress(0, 0, false)
clearActions()

setStyle(
NotificationCompat.BigTextStyle()
.bigText(context.getString(R.string.upload_notification_manager_content_intent_description))
)

// actions for all error types
addAction(UploadBroadcastAction.PauseAndCancel(operation).pauseAction(context))
addAction(UploadBroadcastAction.PauseAndCancel(operation).cancelAction(context))
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,8 @@
<string name="network_error_connect_timeout_exception">An error occurred while waiting for the server. Could not complete operation.</string>
<string name="network_host_not_available">Could not complete operation. Server unavailable.</string>

<string name="upload_notification_manager_content_intent_description">You can remove or resume it from Uploads</string>

<string name="forbidden_permissions">You are not permitted %s</string>
<string name="forbidden_permissions_rename">to rename this file</string>
<string name="forbidden_permissions_delete">to delete this file</string>
Expand Down
Loading