Merge "Don't create copies of Icon bitmaps for Smartspace" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8984c11c95
@@ -348,6 +348,10 @@ public final class SmartspaceAction implements Parcelable {
|
||||
*/
|
||||
@NonNull
|
||||
public SmartspaceAction build() {
|
||||
if (mIcon != null) {
|
||||
mIcon.convertToAshmem();
|
||||
}
|
||||
|
||||
return new SmartspaceAction(mId, mIcon, mTitle, mSubtitle, mContentDescription,
|
||||
mPendingIntent, mIntent, mUserHandle, mExtras);
|
||||
}
|
||||
|
||||
@@ -171,6 +171,7 @@ public final class Icon implements Parcelable {
|
||||
*/
|
||||
@NonNull
|
||||
public Icon build() {
|
||||
mIcon.convertToAshmem();
|
||||
return new Icon(mIcon, mContentDescription, mShouldTint);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user