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

Commit 51997875 authored by kai.cao's avatar kai.cao Committed by Gerrit Code Review
Browse files

CMFileManager: Fix CMFileManager display "sdcard1" and the content is null...

CMFileManager: Fix CMFileManager display "sdcard1" and the content is null after adding a new user/guest

step:
- new user or guest in Settings
- Go to CMFileManager and check

Change-Id: Id6da696b8173f0544a022bc5e3d64d94b7123526
parent a09cb8fa
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1577,6 +1577,14 @@ public class NavigationActivity extends Activity
                        StorageHelper.getStorageVolumes(this, false);
                if (volumes != null && volumes.length > 0) {
                    initialDir = volumes[0].getPath();
                    int count = volumes.length;
                    for (int i = 0; i < count; i++) {
                        StorageVolume volume = volumes[i];
                        if (Environment.MEDIA_MOUNTED.equalsIgnoreCase(volume.getState())) {
                            initialDir = volume.getPath();
                            break;
                        }
                    }
                    //Ensure that initial directory is an absolute directory
                    initialDir = FileHelper.getAbsPath(initialDir);
                } else {