浏览代码

Change Title, remove description for uploads.

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 年之前
父节点
当前提交
aee4a6cb9d

+ 1 - 2
app/src/main/java/com/nextcloud/client/jobs/upload/UploadNotificationManager.kt

@@ -190,8 +190,7 @@ class UploadNotificationManager(private val context: Context, viewThemeUtils: Vi
     fun notifyPaused(intent: PendingIntent) {
     fun notifyPaused(intent: PendingIntent) {
         notificationBuilder.apply {
         notificationBuilder.apply {
             setContentTitle(context.getString(R.string.upload_global_pause_title))
             setContentTitle(context.getString(R.string.upload_global_pause_title))
-            setContentText(context.getString(R.string.upload_global_pause))
-            setTicker(context.getString(R.string.upload_global_pause))
+            setTicker(context.getString(R.string.upload_global_pause_title))
             setOngoing(true)
             setOngoing(true)
             setAutoCancel(false)
             setAutoCancel(false)
             setProgress(0, 0, false)
             setProgress(0, 0, false)

+ 1 - 1
app/src/main/java/com/owncloud/android/ui/adapter/UploadListAdapter.java

@@ -644,7 +644,7 @@ public class UploadListAdapter extends SectionedRecyclerViewAdapter<SectionedVie
                     status = parentActivity.getString(R.string.uploader_upload_in_progress_ticker);
                     status = parentActivity.getString(R.string.uploader_upload_in_progress_ticker);
                 }
                 }
                 if (parentActivity.getAppPreferences().getGlobalUploadPaused()) {
                 if (parentActivity.getAppPreferences().getGlobalUploadPaused()) {
-                    status = parentActivity.getString(R.string.upload_global_pause);
+                    status = parentActivity.getString(R.string.upload_global_pause_title);
                 }
                 }
             }
             }
             case UPLOAD_SUCCEEDED -> {
             case UPLOAD_SUCCEEDED -> {

+ 1 - 2
app/src/main/res/values/strings.xml

@@ -843,8 +843,7 @@
     <string name="upload_sync_conflict">Sync conflict, please resolve manually</string>
     <string name="upload_sync_conflict">Sync conflict, please resolve manually</string>
     <string name="upload_cannot_create_file">Cannot create local file</string>
     <string name="upload_cannot_create_file">Cannot create local file</string>
     <string name="upload_local_storage_not_copied">File could not be copied to local storage</string>
     <string name="upload_local_storage_not_copied">File could not be copied to local storage</string>
-    <string name="upload_global_pause">Upload for all files is paused</string>
-    <string name="upload_global_pause_title">Upload paused</string>
+    <string name="upload_global_pause_title">All uploads are paused</string>
     <string name="upload_quota_exceeded">Storage quota exceeded</string>
     <string name="upload_quota_exceeded">Storage quota exceeded</string>
     <string name="host_not_available">Server not available</string>
     <string name="host_not_available">Server not available</string>
     <string name="delete_entries">Delete entries</string>
     <string name="delete_entries">Delete entries</string>