Add a CREATOR in DashboardCategory to support Parcelable
Bug: 14410901
Change-Id: I52f85e8d4254caf1a3d0c26bf1805580f78fba99
diff --git a/src/com/android/settings/dashboard/DashboardCategory.java b/src/com/android/settings/dashboard/DashboardCategory.java
index 2d08599..164d988 100644
--- a/src/com/android/settings/dashboard/DashboardCategory.java
+++ b/src/com/android/settings/dashboard/DashboardCategory.java
@@ -19,6 +19,7 @@
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 @@
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];
+ }
+ };
}