Loading src/com/android/settings/DataUsageSummary.java +12 −3 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ import android.content.Intent; import android.content.Loader; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.content.pm.UserInfo; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Color; Loading Loading @@ -141,6 +142,7 @@ import com.android.settings.sim.SimSettings; import com.android.settings.widget.ChartDataUsageView; import com.android.settings.widget.ChartDataUsageView.DataUsageChartListener; import com.android.settings.widget.ChartNetworkSeriesView; import com.google.android.collect.Lists; import libcore.util.Objects; Loading Loading @@ -1700,11 +1702,18 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable // Add to app item. collapseKey = uid; category = AppItem.CATEGORY_APP; } else { // If it is a removed user add it to the removed users' key final UserInfo info = mUm.getUserInfo(userId); if (info == null) { collapseKey = UID_REMOVED; category = AppItem.CATEGORY_APP; } else { // Add to other user item. collapseKey = UidDetailProvider.buildKeyForUser(userId); category = AppItem.CATEGORY_USER; } } } else if (uid == UID_REMOVED || uid == UID_TETHERING) { collapseKey = uid; category = AppItem.CATEGORY_APP; Loading Loading
src/com/android/settings/DataUsageSummary.java +12 −3 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ import android.content.Intent; import android.content.Loader; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.content.pm.UserInfo; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Color; Loading Loading @@ -141,6 +142,7 @@ import com.android.settings.sim.SimSettings; import com.android.settings.widget.ChartDataUsageView; import com.android.settings.widget.ChartDataUsageView.DataUsageChartListener; import com.android.settings.widget.ChartNetworkSeriesView; import com.google.android.collect.Lists; import libcore.util.Objects; Loading Loading @@ -1700,11 +1702,18 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable // Add to app item. collapseKey = uid; category = AppItem.CATEGORY_APP; } else { // If it is a removed user add it to the removed users' key final UserInfo info = mUm.getUserInfo(userId); if (info == null) { collapseKey = UID_REMOVED; category = AppItem.CATEGORY_APP; } else { // Add to other user item. collapseKey = UidDetailProvider.buildKeyForUser(userId); category = AppItem.CATEGORY_USER; } } } else if (uid == UID_REMOVED || uid == UID_TETHERING) { collapseKey = uid; category = AppItem.CATEGORY_APP; Loading