summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/deviceinfo
diff options
context:
space:
mode:
authorZoltan Szatmary-Ban <szatmz@google.com>2015-07-13 12:37:31 +0100
committerZoltan Szatmary-Ban <szatmz@google.com>2015-07-13 12:37:31 +0100
commit706e7014d8c3de42d5e18fcffbd07af96cc754b6 (patch)
tree3f30ce3482c576678188189b1ce2e7eb152e0c35 /src/com/android/settings/deviceinfo
parent93b1a5a974f723f5aa463162b1f5aa43338f8c2e (diff)
downloadpackages_apps_Settings-706e7014d8c3de42d5e18fcffbd07af96cc754b6.zip
packages_apps_Settings-706e7014d8c3de42d5e18fcffbd07af96cc754b6.tar.gz
packages_apps_Settings-706e7014d8c3de42d5e18fcffbd07af96cc754b6.tar.bz2
Do not throw exception when MeasurementDetails.mediaSize is empty
It is legitimate for StorageMeasurement.measureExactStorage to return without any user keys added to the returned MeasurementDetails, when the following is true: mVolume == null || !mVolume.isMountedReadable() Bug: 22394495 Change-Id: Ie40bd468a487208d98dc56aae41fdad7098f41a5
Diffstat (limited to 'src/com/android/settings/deviceinfo')
-rw-r--r--src/com/android/settings/deviceinfo/PrivateVolumeSettings.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/settings/deviceinfo/PrivateVolumeSettings.java b/src/com/android/settings/deviceinfo/PrivateVolumeSettings.java
index cf62014..ae89c04 100644
--- a/src/com/android/settings/deviceinfo/PrivateVolumeSettings.java
+++ b/src/com/android/settings/deviceinfo/PrivateVolumeSettings.java
@@ -533,8 +533,7 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
}
}
} else {
- throw new IllegalStateException(
- "MeasurementDetails mediaSize array does not have key for user " + userId);
+ Log.w(TAG, "MeasurementDetails mediaSize array does not have key for user " + userId);
}
return total;
}