소스 검색

extract string

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 6 년 전
부모
커밋
5f7b25f8a1
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/owncloud/android/jobs/NotificationJob.java
  2. 1 0
      src/main/res/values/strings.xml

+ 1 - 1
src/main/java/com/owncloud/android/jobs/NotificationJob.java

@@ -195,7 +195,7 @@ public class NotificationJob extends Job {
                 .setColor(ThemeUtils.primaryColor(account, false, context))
                 .setShowWhen(true)
                 .setSubText(account.name)
-                .setContentTitle("New Notification")
+                .setContentTitle(context.getString(R.string.new_notification))
                 .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))
                 .setAutoCancel(true)
                 .setVisibility(NotificationCompat.VISIBILITY_PUBLIC)

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

@@ -862,4 +862,5 @@
     <string name="remove_notification_failed">Failed to remove notification.</string>
     <string name="notification_action_failed">Failed to execute action.</string>
     <string name="remove_push_notification">Remove</string>
+    <string name="new_notification">New Notification</string>
 </resources>