Merge "Change exception to log" into tm-qpr-dev

This commit is contained in:
Beth Thibodeau
2022-11-09 21:50:16 +00:00
committed by Android (Google) Code Review

View File

@@ -610,7 +610,8 @@ constructor(
// are // are
// elements in mediaPlayers. // elements in mediaPlayers.
if (MediaPlayerData.players().size != mediaContent.childCount) { if (MediaPlayerData.players().size != mediaContent.childCount) {
throw IllegalStateException( Log.e(
TAG,
"Size of players list and number of views in carousel are out of sync. " + "Size of players list and number of views in carousel are out of sync. " +
"Players size is ${MediaPlayerData.players().size}. " + "Players size is ${MediaPlayerData.players().size}. " +
"View count is ${mediaContent.childCount}." "View count is ${mediaContent.childCount}."
@@ -671,7 +672,8 @@ constructor(
// are // are
// elements in mediaPlayers. // elements in mediaPlayers.
if (MediaPlayerData.players().size != mediaContent.childCount) { if (MediaPlayerData.players().size != mediaContent.childCount) {
throw IllegalStateException( Log.e(
TAG,
"Size of players list and number of views in carousel are out of sync. " + "Size of players list and number of views in carousel are out of sync. " +
"Players size is ${MediaPlayerData.players().size}. " + "Players size is ${MediaPlayerData.players().size}. " +
"View count is ${mediaContent.childCount}." "View count is ${mediaContent.childCount}."