summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/dashboard
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2014-05-01 10:28:20 -0700
committerAmith Yamasani <yamasani@google.com>2014-05-01 10:28:20 -0700
commit603b8b6356789c1401d1451a0efd596fd89e8c26 (patch)
tree45a13c07081c8f019f09cfaa934aec821712c64c /src/com/android/settings/dashboard
parent46900881d61aa3614e96bc314ea0143ad42e2f4c (diff)
downloadpackages_apps_Settings-603b8b6356789c1401d1451a0efd596fd89e8c26.tar.gz
packages_apps_Settings-603b8b6356789c1401d1451a0efd596fd89e8c26.tar.bz2
packages_apps_Settings-603b8b6356789c1401d1451a0efd596fd89e8c26.zip
Add a CREATOR in DashboardCategory to support Parcelable
Bug: 14410901 Change-Id: I52f85e8d4254caf1a3d0c26bf1805580f78fba99
Diffstat (limited to 'src/com/android/settings/dashboard')
-rw-r--r--src/com/android/settings/dashboard/DashboardCategory.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/com/android/settings/dashboard/DashboardCategory.java b/src/com/android/settings/dashboard/DashboardCategory.java
index 2d08599d7..164d9889f 100644
--- a/src/com/android/settings/dashboard/DashboardCategory.java
+++ b/src/com/android/settings/dashboard/DashboardCategory.java
@@ -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];
+ }
+ };
}