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

Commit c1ed1090 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Optimize string interning in ParsedComponentImpl serialization" into...

Merge "Optimize string interning in ParsedComponentImpl serialization" into main am: 84637eb3 am: e57b6fd3

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3496896



Change-Id: I72fe04e07b49ba4df4c1c80376931f41d2767aac
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 2ce74aad e57b6fd3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ public abstract class ParsedComponentImpl implements ParsedComponent, Parcelable

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        sForInternedString.parcel(this.name, dest, flags);
        dest.writeInt(this.getIcon());
        dest.writeInt(this.getLabelRes());
        dest.writeCharSequence(this.getNonLocalizedLabel());
@@ -175,7 +175,7 @@ public abstract class ParsedComponentImpl implements ParsedComponent, Parcelable
        // We use the boot classloader for all classes that we load.
        final ClassLoader boot = Object.class.getClassLoader();
        //noinspection ConstantConditions
        this.name = in.readString();
        this.name = sForInternedString.unparcel(in);
        this.icon = in.readInt();
        this.labelRes = in.readInt();
        this.nonLocalizedLabel = in.readCharSequence();