Merge "Call releaseSession() when "stop casting" button click" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
63105b36a7
@@ -186,6 +186,7 @@ public class MediaOutputPanel implements PanelContent, LocalMediaManager.DeviceC
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClickCustomizedButton() {
|
public void onClickCustomizedButton() {
|
||||||
|
mLocalMediaManager.releaseSession();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -236,4 +236,11 @@ public class MediaOutputPanelTest {
|
|||||||
assertThat(mPanel.getSubTitle()).isEqualTo(mContext.getText(
|
assertThat(mPanel.getSubTitle()).isEqualTo(mContext.getText(
|
||||||
R.string.media_output_panel_title));
|
R.string.media_output_panel_title));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void onClickCustomizedButton_shouldReleaseSession() {
|
||||||
|
mPanel.onClickCustomizedButton();
|
||||||
|
|
||||||
|
verify(mLocalMediaManager).releaseSession();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user