Fix bug #6522190 MountService should respond to configuration changes ("INTERNAL STORAGE" string should be translated dynamically)

- use an ID instead of a String for StorageVolume description
- use this ID for getting the correct localized version of the description string

Change-Id: If66868ecc84297322cb9a3f0b2d834f79dd019ca
This commit is contained in:
Fabrice Di Meglio
2012-05-24 11:35:09 -07:00
parent 6e9e519560
commit c18cc43b28

View File

@@ -162,7 +162,7 @@ public class StorageVolumePreferenceCategory extends PreferenceCategory implemen
mResources = resources;
mStorageVolume = storageVolume;
mStorageManager = storageManager;
setTitle(storageVolume != null ? storageVolume.getDescription()
setTitle(storageVolume != null ? storageVolume.getDescription(context)
: resources.getText(R.string.internal_storage));
mMeasurement = StorageMeasurement.getInstance(context, storageVolume, isPrimary);
mMeasurement.setReceiver(this);