Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Add final strings for notification channel. (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
pocmo committed Aug 28, 2017
1 parent 10b0f9f commit 1db7b60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ public void createNotificationChannelIfNeeded() {
}

final String notificationChannelName = getString(R.string.notification_browsing_session_channel_name);
final String notificationChannelDescription = getString(R.string.notification_browsing_session_channel_description);
final String notificationChannelDescription = getString(
R.string.notification_browsing_session_channel_description,
getString(R.string.app_name));

final NotificationChannel channel = new NotificationChannel(
NOTIFICATION_CHANNEL_ID, notificationChannelName, NotificationManager.IMPORTANCE_MIN);
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -360,19 +360,19 @@ be temporary, and you can try again later.</li>
existing tab. -->
<string name="dialog_opentab_action_open">Open</string>

<!-- The user visible name of the notification channel.
<!-- The user visible name of the "notification channel" (Android 8+ feature) for the ongoing notification shown while a browsing session is active.
The recommended maximum length is 40 characters; the value may be truncated if it is too long.
* To understand what notification channels are, see: https://www.androidcentral.com/notification-channels
* To see how this string will look like in Android's UI, see: https://github.com/mozilla-mobile/focus-android/issues/863#issuecomment-324105723
-->
<string name="notification_browsing_session_channel_name">TBD</string>
<string name="notification_browsing_session_channel_name">Private browsing session</string>

<!-- The user visible description of the notification channel.
The recommended maximum length is 300 characters; the value may be truncated if it is too long.
<!-- The user visible description of the "notification channel" (Android 8+ feature) for the ongoing notification shown while a browsing session is active.
The recommended maximum length is 300 characters; the value may be truncated if it is too long. %1$s will be replaced with the name of the app (e.g. Firefox Focus).
* To understand what notification channels are, see: https://www.androidcentral.com/notification-channels
* To see how this string will look like in Android's UI, see: https://github.com/mozilla-mobile/focus-android/issues/863#issuecomment-324105723
-->
<string name="notification_browsing_session_channel_description">TBD</string>
<string name="notification_browsing_session_channel_description">Notifications let you erase your %1$s session with a tap. You don’t need to open the app or see what’s running in your browser.</string>
</resources>

0 comments on commit 1db7b60

Please sign in to comment.