am 3cfb6767: am e7d8485a: am 5be77489: Merge "Dont show "Erase SD Card" when there is none"

* commit '3cfb676758b5ec44100a0a8cd47f1c4a7a615775':
  Dont show "Erase SD Card" when there is none
This commit is contained in:
Amith Yamasani
2014-01-07 18:48:22 +00:00
committed by Android Git Automerger

View File

@@ -283,7 +283,7 @@ public class StorageVolumePreferenceCategory extends PreferenceCategory {
mFormatPreference.setSummary(mResources.getString(R.string.mtp_ptp_mode_summary));
}
} else if (mFormatPreference != null) {
mFormatPreference.setEnabled(true);
mFormatPreference.setEnabled(mMountTogglePreference.isEnabled());
mFormatPreference.setSummary(mResources.getString(R.string.sd_format_summary));
}
}