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

Commit af66394a authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Gerrit Code Review
Browse files

Merge "Initialize the Media Player list at start"

parents af78536a 11bf73ff
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -270,14 +270,14 @@ public final class Avrcp {
        /* initialize BrowseMananger which manages Browse commands and response */
        mAvrcpBrowseManager = new AvrcpBrowseManager(mContext, mAvrcpMediaRsp);

        // Build the media players list
        buildMediaPlayersList();

        UserManager manager = UserManager.get(mContext);
        if (manager == null || manager.isUserUnlocked()) {
            if (DEBUG) Log.d(TAG, "User already unlocked, initializing player lists");
            // initialize browsable player list and build media player list
            (new BrowsablePlayerListBuilder()).start();
        } else {
            // Still build the media players list even if we can't browse.
            buildMediaPlayersList();
        }
    }