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

Commit 5fa895ed authored by Yangster-mac's avatar Yangster-mac
Browse files

Trim the invalid uids and tags when reading uids/tags from chain.

Test: manual test.

BUG: b/77817908
Change-Id: I5570c9bd0e76290e09ba84388db027dc272039a6
parent 6a67b864
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -924,13 +924,17 @@ public class WorkSource implements Parcelable {
        /** @hide */
        @VisibleForTesting
        public int[] getUids() {
            return mUids;
            int[] uids = new int[mSize];
            System.arraycopy(mUids, 0, uids, 0, mSize);
            return uids;
        }

        /** @hide */
        @VisibleForTesting
        public String[] getTags() {
            return mTags;
            String[] tags = new String[mSize];
            System.arraycopy(mTags, 0, tags, 0, mSize);
            return tags;
        }

        /** @hide */