Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e64f479f authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Update crashed phone app strings.

UX and product management indicated that the crashed phone app strings
needed to be updated for clarity.
Since the "title" string now has a string placeholder and the "body"
string does not, I changed the string resource name to avoid issues where
old translations with/without the string placeholder cause string
formatting issues.

Test: Manual test by crashing phone app and verifying message is as
expected.
Fixes: 149048344

Change-Id: If7673b4a383e995cf419bb9e9df9967196e55603
parent a5010cf5
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -75,13 +75,14 @@
        background. This app may be accessing and playing audio over the call.
    </string>

    <!-- Crashed in call service notification label, used when the in call service has cranshed and
    <!-- Crashed in call service notification label, used when the in call service has crashed and
         the system fall back to use system dialer. [CHAR LIMIT=NONE] -->
    <string name="notification_crashedInCallService_title">Crashed phone app</string>
    <string name="notification_incallservice_not_responding_title">
        <xliff:g id="in_call_service_app_name">%s</xliff:g> stopped responding
    </string>
    <!-- Body of the notification presented when an in call service crashed. [CHAR LIMIT=NONE] -->
    <string name="notification_crashedInCallService_body">
        Your phone app <xliff:g id="in_call_service_app_name">%s</xliff:g> has crashed.
        You call was continued using the phone app that came with your device.
    <string name="notification_incallservice_not_responding_body">
        Your call used the phone app that came with your device
    </string>

    <!-- Content description of the call muted notification icon for
+4 −5
Original line number Diff line number Diff line
@@ -1825,12 +1825,11 @@ public class InCallController extends CallsManagerListenerBase {
        builder.setSmallIcon(R.drawable.ic_phone)
                .setColor(mContext.getResources().getColor(R.color.theme_color))
                .setContentTitle(
                        mContext.getText(
                                R.string.notification_crashedInCallService_title))
                        mContext.getString(
                                R.string.notification_incallservice_not_responding_title, appName))
                .setStyle(new Notification.BigTextStyle()
                        .bigText(mContext.getString(
                                R.string.notification_crashedInCallService_body,
                                appName)));
                        .bigText(mContext.getText(
                                R.string.notification_incallservice_not_responding_body)));
        notificationManager.notify(NOTIFICATION_TAG, IN_CALL_SERVICE_NOTIFICATION_ID,
                builder.build());
    }