Skip to content
Snippets Groups Projects
Commit 9054656c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Trim the invalid uids and tags when reading uids/tags from chain." into pi-dev

parents 6f42d1ba 5fa895ed
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment