OSDN Git Service

Clamp large data usage values.
authorJeff Sharkey <jsharkey@android.com>
Mon, 19 Oct 2015 23:41:53 +0000 (16:41 -0700)
committerJeff Sharkey <jsharkey@android.com>
Mon, 19 Oct 2015 23:41:53 +0000 (16:41 -0700)
commit3105ea30d47d35848951cda0cc4b18750e5166ea
tree719493ec3cfa01dbe96009a4a5112bc9a3163ce1
parentcdcba9ce5f44cf4cad9e308919272db4e15e9717
Clamp large data usage values.

Without clamping, they can wrap around to negative values and cause
all sorts of havok.  1TB ought to be enough for anyone: that's 3Mbps
for a solid month.

Bug: 24555152
Change-Id: If92c87f9920c3f05cd3ff2cc6630b1bbb65335b8
src/com/android/settings/widget/ChartDataUsageView.java