From 93df01e3a776d4d7806eec53b2ad3aca8a7dcd45 Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 23 Oct 2013 11:33:35 -0700 Subject: [PATCH] remove primary condition check on storage format. this change seemed to have been introduced originally via commit d2a6f28fa7ba8189d2a1987129db27fd840fac0f as a workaround to fix interoperability problem with MTP, then commit 8218d3ba180505a52998caa1fd9f6a1647984e7f seemed to have address this problem. therefore it looks like removing the original restriction is in order to allow formating of the sd-card when not primary storage. Bug: 11352632 Change-Id: I0419135a607dac08c44a3f30a7ccdcad17c46437 Signed-off-by: Pierre --- .../android/settings/deviceinfo/StorageVolumePreferenceCategory.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java b/src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java index 4e5bd63f47..ed5085a2a5 100644 --- a/src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java +++ b/src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java @@ -205,9 +205,7 @@ public class StorageVolumePreferenceCategory extends PreferenceCategory { addPreference(mMountTogglePreference); } - // Only allow formatting of primary physical storage - // TODO: enable for non-primary volumes once MTP is fixed - final boolean allowFormat = mVolume != null ? mVolume.isPrimary() : false; + final boolean allowFormat = mVolume != null; if (allowFormat) { mFormatPreference = new Preference(context); mFormatPreference.setTitle(R.string.sd_format); -- 2.11.0