diff options
author | Edward Cunningham <ejc@google.com> | 2015-02-27 00:33:30 +0100 |
---|---|---|
committer | Edward Cunningham <ejc@google.com> | 2015-02-27 00:33:30 +0100 |
commit | 690f78adf1737b2356d341b46f21a4e2d5df58eb (patch) | |
tree | 66a5cc9813c24f2edb64a87206aae3b434969e7b /services/usage/java/com/android/server | |
parent | bd4b5b7fd0c5f7a2ec82ea130922541626dcc0fd (diff) | |
download | frameworks_base-690f78adf1737b2356d341b46f21a4e2d5df58eb.zip frameworks_base-690f78adf1737b2356d341b46f21a4e2d5df58eb.tar.gz frameworks_base-690f78adf1737b2356d341b46f21a4e2d5df58eb.tar.bz2 |
Fix UsageStats to report correct endTime from XML
Bug: 19529542
Change-Id: Iacb1a245a40c6b88ae15740797217f59d5fca1e6
Diffstat (limited to 'services/usage/java/com/android/server')
-rw-r--r-- | services/usage/java/com/android/server/usage/UsageStatsXmlV1.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/usage/java/com/android/server/usage/UsageStatsXmlV1.java b/services/usage/java/com/android/server/usage/UsageStatsXmlV1.java index ef95a7b..bfb71c5 100644 --- a/services/usage/java/com/android/server/usage/UsageStatsXmlV1.java +++ b/services/usage/java/com/android/server/usage/UsageStatsXmlV1.java @@ -191,7 +191,7 @@ final class UsageStatsXmlV1 { statsOut.events.clear(); } - statsOut.endTime = XmlUtils.readLongAttribute(parser, END_TIME_ATTR); + statsOut.endTime = statsOut.beginTime + XmlUtils.readLongAttribute(parser, END_TIME_ATTR); int eventCode; int outerDepth = parser.getDepth(); |