diff options
author | Adam Lesinski <adamlesinski@google.com> | 2014-11-04 13:38:46 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2014-11-04 13:38:46 -0800 |
commit | 32e580604d7b0a093750178127693a804bea134c (patch) | |
tree | ef4683fd323b5e77e42799b79f7cf9e588a6a950 /services/usage/java/com/android/server | |
parent | 085329b69abc0751591f99faf8a7e8fc2dc7c9df (diff) | |
download | frameworks_base-32e580604d7b0a093750178127693a804bea134c.zip frameworks_base-32e580604d7b0a093750178127693a804bea134c.tar.gz frameworks_base-32e580604d7b0a093750178127693a804bea134c.tar.bz2 |
Fix bug where checking-in more than once would cause an infinite loop in UsageStatsService
- Forgot to increment loop variable :S
Bug:18239732
Change-Id: Ie37a83584d7849108dbfd3bd4cbb595520d488b1
Diffstat (limited to 'services/usage/java/com/android/server')
-rw-r--r-- | services/usage/java/com/android/server/usage/UsageStatsDatabase.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/usage/java/com/android/server/usage/UsageStatsDatabase.java b/services/usage/java/com/android/server/usage/UsageStatsDatabase.java index 11da380..098b3ef 100644 --- a/services/usage/java/com/android/server/usage/UsageStatsDatabase.java +++ b/services/usage/java/com/android/server/usage/UsageStatsDatabase.java @@ -119,6 +119,7 @@ class UsageStatsDatabase { if (!files.valueAt(start).getBaseFile().getName().endsWith("-c")) { break; } + start++; } if (start == fileCount - 1) { |