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

Commit d614107c 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: I857f30cc04966179a8f86480d5ad5fedfbfe2cb6
parents 0abd9233 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();
            }