Răsfoiți Sursa

Move learn more text in skipped entries notification to main content

Because people apparently don't realize they can tap actions
arkon 3 ani în urmă
părinte
comite
28575936d3

+ 2 - 1
app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt

@@ -128,8 +128,9 @@ class LibraryUpdateNotifier(private val context: Context) {
             Notifications.ID_LIBRARY_SKIPPED,
             context.notificationBuilder(Notifications.CHANNEL_LIBRARY_SKIPPED) {
                 setContentTitle(context.resources.getString(R.string.notification_update_skipped, skipped))
+                setContentText(context.getString(R.string.learn_more))
                 setSmallIcon(R.drawable.ic_tachi)
-                addAction(R.drawable.ic_help_24dp, context.getString(R.string.learn_more), NotificationHandler.openUrl(context, HELP_SKIPPED_URL))
+                setContentIntent(NotificationHandler.openUrl(context, HELP_SKIPPED_URL))
             }
                 .build(),
         )

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

@@ -740,7 +740,7 @@
     </plurals>
     <string name="notification_update_error">%1$d update(s) failed</string>
     <string name="notification_update_skipped">%1$d update(s) skipped</string>
-    <string name="learn_more">Learn more</string>
+    <string name="learn_more">Tap to learn more</string>
     <string name="notification_cover_update_failed">Failed to update cover</string>
     <string name="notification_first_add_to_library">Please add the manga to your library before doing this</string>
     <string name="library_errors_help">For help on how to fix library update errors, see %1$s</string>