equal
deleted
inserted
replaced
50 this.volInfo = GetVolumeInformation(root); |
50 this.volInfo = GetVolumeInformation(root); |
51 this.volType = GetDriveType(root); |
51 this.volType = GetDriveType(root); |
52 |
52 |
53 // file store "display name" is the volume name if available |
53 // file store "display name" is the volume name if available |
54 String vol = volInfo.volumeName(); |
54 String vol = volInfo.volumeName(); |
55 if (vol.length() > 0) { |
55 if (!vol.isEmpty()) { |
56 this.displayName = vol; |
56 this.displayName = vol; |
57 } else { |
57 } else { |
58 // TBD - should we map all types? Does this need to be localized? |
58 // TBD - should we map all types? Does this need to be localized? |
59 this.displayName = (volType == DRIVE_REMOVABLE) ? "Removable Disk" : ""; |
59 this.displayName = (volType == DRIVE_REMOVABLE) ? "Removable Disk" : ""; |
60 } |
60 } |