Fix secondary data usage color regression.

Show overall usage with a 50% transparency when looking at a
specific app details page.  (Otherwise you can't tell them apart.)

Bug: 18927935
Change-Id: I0cad1ba0451a9dab3ed90fa5aa53c115dbe3e1d3
This commit is contained in:
Jeff Sharkey
2015-01-26 15:15:59 -07:00
parent 26a3e949c5
commit 9c167e92df

View File

@@ -841,8 +841,10 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable
}
}
mSeries.setChartColor(Color.BLACK, seriesColor, seriesColor);
mDetailedSeries.setChartColor(Color.BLACK, seriesColor, seriesColor);
final int secondaryColor = Color.argb(127, Color.red(seriesColor), Color.green(seriesColor),
Color.blue(seriesColor));
mSeries.setChartColor(Color.BLACK, seriesColor, secondaryColor);
mDetailedSeries.setChartColor(Color.BLACK, seriesColor, secondaryColor);
}
private boolean isAppDetailMode() {