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

Commit 227a23a8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add null check to getAppContentDescription" into mainline-prod

parents 73e67253 d1dea94f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -52,6 +52,9 @@ public class AppUtils {
    public static String getAppContentDescription(Context context, String packageName,
            int userId) {
        final CharSequence appLabel = getApplicationLabel(context.getPackageManager(), packageName);
        if (appLabel == null) {
            return "";
        }
        return context.getSystemService(UserManager.class).isManagedProfile(userId)
                ? context.getString(R.string.accessibility_work_profile_app_description, appLabel)
                : appLabel.toString();