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

Commit 3d055073 authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Initialize the Browsable Player list at user unlock instead of boot complete

am: f7404b7a

Change-Id: Ic3ae1de9ac1985c3ef7cbd1bbedad10d3cfbe7e1
parents 09fa817b f7404b7a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@ public final class Avrcp {
        context.registerReceiver(mAvrcpReceiver, pkgFilter);

        IntentFilter bootFilter = new IntentFilter();
        bootFilter.addAction(Intent.ACTION_BOOT_COMPLETED);
        bootFilter.addAction(Intent.ACTION_USER_UNLOCKED);
        context.registerReceiver(mBootReceiver, bootFilter);
    }

@@ -1414,8 +1414,8 @@ public final class Avrcp {
        @Override
        public void onReceive(Context context, Intent intent) {
            String action = intent.getAction();
            if (action.equals(Intent.ACTION_BOOT_COMPLETED)) {
                if (DEBUG) Log.d(TAG, "Boot completed, initializing player lists");
            if (action.equals(Intent.ACTION_USER_UNLOCKED)) {
                if (DEBUG) Log.d(TAG, "User unlocked, initializing player lists");
                /* initializing media player's list */
                buildBrowsablePlayerList();
            }