Issue:
"
Reproduction Steps:
- Insert an SD card to the device. (SD card should be mounted on the device )
- Go to Settings -> Storage
- Select the external sdcard from the drop down list
- Click on More options -> Eject -------> Issue ----> Drop down list disappears
- Press Back button
- Again click on Storage option -> Drop down list available
"
Solution:
"
Solution: Don't remove SDCard entity from storage entries for Ejecting and unmounted status.
"
packages/apps/Settings/src/com/android/settings/deviceinfo/StorageDashboardFragment.java
diff --git a/src/com/android/settings/deviceinfo/StorageDashboardFragment.java b/src/com/android/settings/deviceinfo/StorageDashboardFragment.java
index 5f1a245..061341b 100644
--- a/src/com/android/settings/deviceinfo/StorageDashboardFragment.java
+++ b/src/com/android/settings/deviceinfo/StorageDashboardFragment.java
@@ -145,7 +145,9 @@
});
if (volumeState == VolumeInfo.STATE_MOUNTED
|| volumeState == VolumeInfo.STATE_MOUNTED_READ_ONLY
- || volumeState == VolumeInfo.STATE_UNMOUNTABLE) {
+ || volumeState == VolumeInfo.STATE_UNMOUNTABLE
+ || volumeState == VolumeInfo.STATE_UNMOUNTED
+ || volumeState == VolumeInfo.STATE_EJECTING) {
mStorageEntries.add(changedStorageEntry);
if (changedStorageEntry.equals(mSelectedStorageEntry)) {
mSelectedStorageEntry = changedStorageEntry;