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

Commit a9100ca6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "[Output Switcher] Delete fallback check under api" into tm-dev am: 84c78397 am: 7364689c

parents 62b01ea4 7364689c
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -55,8 +55,6 @@ import android.view.WindowManager;
import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
import androidx.core.graphics.drawable.IconCompat;
import androidx.mediarouter.media.MediaRouter;
import androidx.mediarouter.media.MediaRouterParams;

import com.android.settingslib.RestrictedLockUtilsInternal;
import com.android.settingslib.Utils;
@@ -215,9 +213,8 @@ public class MediaOutputController implements LocalMediaManager.DeviceCallback,
    }

    boolean shouldShowLaunchSection() {
        MediaRouterParams routerParams = MediaRouter.getInstance(mContext).getRouterParams();
        Log.d(TAG, "try to get routerParams: " + routerParams);
        return routerParams != null && !routerParams.isMediaTransferReceiverEnabled();
        // TODO(b/231398073): Implements this when available.
        return false;
    }

    void setRefreshing(boolean refreshing) {