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

Commit 55dbb25a authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Ensure app label properly bolded" into nyc-dev

parents 988f3bcb 4010e57f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -237,8 +237,8 @@ public class GrantPermissionsActivity extends OverlayTouchActivity
                // Set the permission message as the title so it can be announced.
                setTitle(message);
                // Color the app name.
                int appLabelStart = message.toString().indexOf(appLabel.toString(), 0);
                int appLabelLength = appLabel.length();
                int appLabelStart = message.toString().indexOf(" " + appLabel.toString() + " ", 0);
                int appLabelLength = appLabel.length() + 1;
                message.setSpan(new StyleSpan(Typeface.BOLD), appLabelStart,
                        appLabelStart + appLabelLength, 0);