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

Commit a73a4467 authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Unconditionally initialize ExternalStorageService component.

This was guarded by a reset condition, which is not necessary; we should
be able to retrieve the component name regardless of whether we are
currently resetting the stack or not.

Bug: 197975495
Test: N/A
Change-Id: I4cffca46f11ee515644bb13c09bfdfc118e2bb95
parent 12876ad8
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -260,16 +260,11 @@ public final class StorageSessionController {
    }

    /**
     * Restarts all sessions for {@code userId}.
     *
     * Does nothing if {@link #shouldHandle} is {@code false}
     *
     * This call blocks and waits for all sessions to be started, however any failures when starting
     * a session will be ignored.
     * Makes sure we initialize the ExternalStorageService component.
     */
    public void onUnlockUser(int userId) throws ExternalStorageServiceException {
        Slog.i(TAG, "On user unlock " + userId);
        if (shouldHandle(null) && userId == 0) {
        if (userId == 0) {
            initExternalStorageServiceComponent();
        }
    }