summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/MountService.java
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-05-18 09:23:35 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-05-18 09:23:35 -0700
commitfa1e5561cc65b932067919fcd5d39fda7032793e (patch)
tree1f43b6f81826db2989c8a24ddd653c0238f2b4aa /services/java/com/android/server/MountService.java
parent74bafe40d766d3b9c90869b1d0bc7478d34015b4 (diff)
parent53b988ba1842f40e595bb85f2ca055c24787e6dc (diff)
downloadframeworks_base-fa1e5561cc65b932067919fcd5d39fda7032793e.zip
frameworks_base-fa1e5561cc65b932067919fcd5d39fda7032793e.tar.gz
frameworks_base-fa1e5561cc65b932067919fcd5d39fda7032793e.tar.bz2
am 53b988ba: am 5a79cfd7: am 27ac64ec: Merge "StorageVolume: Add getStorageId() accessor" into honeycomb-mr2
* commit '53b988ba1842f40e595bb85f2ca055c24787e6dc': StorageVolume: Add getStorageId() accessor
Diffstat (limited to 'services/java/com/android/server/MountService.java')
-rw-r--r--services/java/com/android/server/MountService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/java/com/android/server/MountService.java b/services/java/com/android/server/MountService.java
index 03d5728..ae04b7f 100644
--- a/services/java/com/android/server/MountService.java
+++ b/services/java/com/android/server/MountService.java
@@ -1148,6 +1148,11 @@ class MountService extends IMountService.Stub implements INativeDaemonConnectorC
} catch (IOException e) {
throw new RuntimeException(e);
} finally {
+ // compute storage ID for each volume
+ int length = mVolumes.size();
+ for (int i = 0; i < length; i++) {
+ mVolumes.get(i).setStorageId(i);
+ }
parser.close();
}
}