summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Shubang Lu <shubang@google.com> 2024-10-01 08:40:26 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-10-01 08:40:26 +0000
commit0d79d91d59a0acef128eb0fcdeb589d1a8c51241 (patch)
treed8e8107d745d97725b0f9b7ec929f4b3ad2eba80
parentcc18f2fed4b195f85283e3ecc8c093b8a99d282c (diff)
parent3f4da6bf735a159d1b48603a8f0661d0dcae5313 (diff)
Merge "[TIAF] Fix ClassCastException of content rating" into main
-rw-r--r--media/java/android/media/tv/interactive/ITvInteractiveAppSessionWrapper.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/java/android/media/tv/interactive/ITvInteractiveAppSessionWrapper.java b/media/java/android/media/tv/interactive/ITvInteractiveAppSessionWrapper.java
index ec6c2bfab576..8e6297c3899d 100644
--- a/media/java/android/media/tv/interactive/ITvInteractiveAppSessionWrapper.java
+++ b/media/java/android/media/tv/interactive/ITvInteractiveAppSessionWrapper.java
@@ -267,7 +267,9 @@ public class ITvInteractiveAppSessionWrapper
break;
}
case DO_NOTIFY_CONTENT_BLOCKED: {
- mSessionImpl.notifyContentBlocked((TvContentRating) msg.obj);
+ String contentRating = (String) msg.obj;
+ mSessionImpl.notifyContentBlocked(
+ TvContentRating.unflattenFromString(contentRating));
break;
}
case DO_NOTIFY_SIGNAL_STRENGTH: {