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

Commit f549ccc6 authored by William Escande's avatar William Escande
Browse files

Trunk Stable/MediaPlayerList: Use static flagging

Bug: 323981134
Bug: 314855224
Test: m Bluetooth | mechanical refactor
Change-Id: I0bb6be94dcbf4e6c96913bc18f37a9a6e9589b76
parent 4572a406
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -37,8 +37,7 @@ import android.util.Log;

import com.android.bluetooth.BluetoothEventLogger;
import com.android.bluetooth.Utils;
import com.android.bluetooth.flags.FeatureFlags;
import com.android.bluetooth.flags.FeatureFlagsImpl;
import com.android.bluetooth.flags.Flags;
import com.android.internal.annotations.VisibleForTesting;

import java.util.ArrayList;
@@ -92,7 +91,6 @@ public class MediaPlayerList {
    private MediaSessionManager mMediaSessionManager;
    private MediaData mCurrMediaData = null;
    private final AudioManager mAudioManager;
    private final FeatureFlags mFeatureFlags = new FeatureFlagsImpl();

    private final BluetoothEventLogger mActivePlayerLogger =
            new BluetoothEventLogger(ACTIVE_PLAYER_LOGGER_SIZE, ACTIVE_PLAYER_LOGGER_TITLE);
@@ -211,7 +209,7 @@ public class MediaPlayerList {

        // Build the list of browsable players and afterwards, build the list of media players
        Intent intent = new Intent(android.service.media.MediaBrowserService.SERVICE_INTERFACE);
        if (mFeatureFlags.keepStoppedMediaBrowserService()) {
        if (Flags.keepStoppedMediaBrowserService()) {
            // Don't query stopped apps, that would end up unstopping them
            intent.addFlags(Intent.FLAG_EXCLUDE_STOPPED_PACKAGES);
        }