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

Commit 4a3c82a7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't truncate an app's own label when forcing safe label." into...

Merge "Don't truncate an app's own label when forcing safe label." into rvc-dev am: 2f988b5a am: a98609c3 am: 498366bb

Change-Id: Iab0c7c9e021e08c3bc3fce0cf0e9c8a393526a69
parents 97b3ad1a 498366bb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import static android.text.TextUtils.makeSafeForPresentation;
import android.annotation.FloatRange;
import android.annotation.NonNull;
import android.annotation.SystemApi;
import android.app.ActivityThread;
import android.content.res.XmlResourceParser;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
@@ -194,7 +195,7 @@ public class PackageItemInfo {
     * item does not have a label, its name is returned.
     */
    public @NonNull CharSequence loadLabel(@NonNull PackageManager pm) {
        if (sForceSafeLabels) {
        if (sForceSafeLabels && !Objects.equals(packageName, ActivityThread.currentPackageName())) {
            return loadSafeLabel(pm, DEFAULT_MAX_LABEL_SIZE_PX, SAFE_STRING_FLAG_TRIM
                    | SAFE_STRING_FLAG_FIRST_LINE);
        } else {