Disable entry point of output switcher
It adds a minimum value if it shows only one available cast device in the output switcher. Because users can only change the volume slider or stop control in the output switcher. It's too hidden to have the user stop cast in the UI. - This CL will disable the entry point of the output switcher if there is only one available cast device in the list. - Update test cases. Bug: 163095048 Test: make -j42 RunSettingsRoboTests Change-Id: I8906878e1ba769d6940041f17d83b5de6b2a32c0
This commit is contained in:
@@ -31,6 +31,7 @@ import android.content.SharedPreferences;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageStats;
|
||||
import android.media.MediaRouter2Manager;
|
||||
import android.media.RoutingSessionInfo;
|
||||
import android.media.session.MediaSessionManager;
|
||||
|
||||
@@ -100,6 +101,7 @@ public class RemoteVolumeGroupControllerTest {
|
||||
Context.MEDIA_SESSION_SERVICE);
|
||||
mController = new RemoteVolumeGroupController(mContext, KEY_REMOTE_VOLUME_GROUP);
|
||||
mController.mLocalMediaManager = mLocalMediaManager;
|
||||
mController.mRouterManager = mock(MediaRouter2Manager.class);
|
||||
mPreferenceCategory = spy(new PreferenceCategory(mContext));
|
||||
mPreferenceCategory.setKey(mController.getPreferenceKey());
|
||||
|
||||
|
Reference in New Issue
Block a user