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

Commit 0cec6199 authored by shaoweishen's avatar shaoweishen
Browse files

[Output Switcher] Delete fallback check under api

add a todo for fallback ui checking

Bug: 231398073
Test: N/A
Change-Id: Ib34424ee2e3693f162db0f41f10f770251325f24
parent a7f5aa5b
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) {