diff options
Diffstat (limited to 'src/com/android/settings/DataUsageSummary.java')
| -rw-r--r-- | src/com/android/settings/DataUsageSummary.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/com/android/settings/DataUsageSummary.java b/src/com/android/settings/DataUsageSummary.java index 9a208821d..3ee9e07b1 100644 --- a/src/com/android/settings/DataUsageSummary.java +++ b/src/com/android/settings/DataUsageSummary.java @@ -1811,8 +1811,8 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable final AppItem item = mItems.get(position); if (getItemViewType(position) == 1) { if (convertView == null) { - convertView = inflateCategoryHeader(LayoutInflater.from(parent.getContext()), - parent); + convertView = Utils.inflateCategoryHeader(LayoutInflater.from( + parent.getContext()), parent); } final TextView title = (TextView) convertView.findViewById(android.R.id.title); @@ -2503,14 +2503,6 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable return view; } - private static View inflateCategoryHeader(LayoutInflater inflater, ViewGroup root) { - final TypedArray a = inflater.getContext().obtainStyledAttributes(null, - com.android.internal.R.styleable.Preference, - com.android.internal.R.attr.preferenceCategoryStyle, 0); - final int resId = a.getResourceId(com.android.internal.R.styleable.Preference_layout, 0); - return inflater.inflate(resId, root, false); - } - /** * Test if any networks are currently limited. */ |
