remove primary condition check on storage format.
this change seemed to have been introduced originally via commitd2a6f28fa7
as a workaround to fix interoperability problem with MTP, then commit8218d3ba18
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 <pierre@broadcom.com>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user