summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2013-10-31 08:45:20 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2013-10-31 08:45:23 -0700
commit3cb2be97a226ae605f7b983739e02f40c0403989 (patch)
tree002c3e76fa100252854b35315fde53fa61bdfd2f /services/java
parent334d98f1ece949414b94924a5bc852810e0bf367 (diff)
downloadframeworks_base-3cb2be97a226ae605f7b983739e02f40c0403989.zip
frameworks_base-3cb2be97a226ae605f7b983739e02f40c0403989.tar.gz
frameworks_base-3cb2be97a226ae605f7b983739e02f40c0403989.tar.bz2
Wrong index while dumping the print sub-system's state.
The wrong method was used when getting the user states to dump and as a result only the state for the current user was dumped as we get an exception for the other users. bug:11457875 Change-Id: I9a3bcac01f1f1cf4f6e72aefff7cff2e0c6bca94
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/print/PrintManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/print/PrintManagerService.java b/services/java/com/android/server/print/PrintManagerService.java
index 8a3997a..98acc27 100644
--- a/services/java/com/android/server/print/PrintManagerService.java
+++ b/services/java/com/android/server/print/PrintManagerService.java
@@ -366,7 +366,7 @@ public final class PrintManagerService extends IPrintManager.Stub {
pw.println("PRINT MANAGER STATE (dumpsys print)");
final int userStateCount = mUserStates.size();
for (int i = 0; i < userStateCount; i++) {
- UserState userState = mUserStates.get(i);
+ UserState userState = mUserStates.valueAt(i);
userState.dump(fd, pw, "");
pw.println();
}