am c220d8e5: Stop crypto UI from crashing during encryption

* commit 'c220d8e57ca97c70db1fd72f040bd6c6f70bbf13':
  Stop crypto UI from crashing during encryption
This commit is contained in:
Paul Lawrence
2014-10-24 20:08:33 +00:00
committed by Android Git Automerger

View File

@@ -826,7 +826,9 @@ class MountService extends IMountService.Stub
// On an encrypted device we can't see system properties yet, so pull
// the system locale out of the mount service.
copyLocaleFromMountService();
if ("".equals(SystemProperties.get("vold.encrypt_progress"))) {
copyLocaleFromMountService();
}
// Let package manager load internal ASECs.
mPms.scanAvailableAsecs();