Add a CREATOR in DashboardCategory to support Parcelable

Bug: 14410901
Change-Id: I52f85e8d4254caf1a3d0c26bf1805580f78fba99
This commit is contained in:
Amith Yamasani
2014-05-01 10:28:20 -07:00
parent 46900881d6
commit 603b8b6356

View File

@@ -19,6 +19,7 @@ package com.android.settings.dashboard;
import android.content.res.Resources;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import android.text.TextUtils;
import java.util.ArrayList;
@@ -127,4 +128,18 @@ public class DashboardCategory implements Parcelable {
tiles.add(tile);
}
}
DashboardCategory(Parcel in) {
readFromParcel(in);
}
public static final Creator<DashboardCategory> CREATOR = new Creator<DashboardCategory>() {
public DashboardCategory createFromParcel(Parcel source) {
return new DashboardCategory(source);
}
public DashboardCategory[] newArray(int size) {
return new DashboardCategory[size];
}
};
}