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

Commit 4010e57f authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Ensure app label properly bolded

This change ensures the app name is properly bolded in
the premissions request UI even if it is a substring
of "Allow" :)

bug:28719607

Change-Id: I5a313f67c19a2d882732b1c97f0dbee5782b22f5
parent 1dba1776
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);