Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61418a8d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Settings: Fix force close in settings"

parents ba12b534 ad00ceb7
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -169,8 +169,13 @@ public class StorageSettings extends SettingsPreferenceFragment implements Index
                    privateTotalBytes += path.getTotalSpace();
                }
            } else if (vol.getType() == VolumeInfo.TYPE_PUBLIC) {
                mExternalCategory.addPreference(
                        new StorageVolumePreference(context, vol, COLOR_PUBLIC));
                StorageVolumePreference ExStorageVolumePreference =
                        new StorageVolumePreference(context, vol, COLOR_PUBLIC);

                //Disable preference when in change
                ExStorageVolumePreference.setEnabled(vol.getState()!= VolumeInfo.STATE_CHECKING
                    && vol.getState() != VolumeInfo.STATE_EJECTING);
                mExternalCategory.addPreference(ExStorageVolumePreference);
            }
        }