aboutsummaryrefslogtreecommitdiff
path: root/src/com/android/tv/recommendation/NotificationService.java
diff options
context:
space:
mode:
authorNick Chalko <nchalko@google.com>2017-05-04 14:37:34 -0700
committerNick Chalko <nchalko@google.com>2017-05-05 06:18:44 -0700
commit3dfa929b24f38ac7836450176d88ceab41dc6ac5 (patch)
tree675a324760c582713e2e0080775ea17357f75b65 /src/com/android/tv/recommendation/NotificationService.java
parentfddf3fd148c1fc94c48ee5684e47dbb56512e758 (diff)
downloadTV-3dfa929b24f38ac7836450176d88ceab41dc6ac5.tar.gz
Sync to ub-tv-dev at f0024d79653da8c8999a91f995431a645a6ff4a2
Change-Id: I4199ec04cacb4a78be58b85302a39d917658dc28
Diffstat (limited to 'src/com/android/tv/recommendation/NotificationService.java')
-rw-r--r--src/com/android/tv/recommendation/NotificationService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/tv/recommendation/NotificationService.java b/src/com/android/tv/recommendation/NotificationService.java
index 30ec73e3..a472f559 100644
--- a/src/com/android/tv/recommendation/NotificationService.java
+++ b/src/com/android/tv/recommendation/NotificationService.java
@@ -426,6 +426,7 @@ public class NotificationService extends Service implements Recommender.Listener
: 100 - (int) (programLeftTimsMs * 100 / programDurationMs);
Intent intent = new Intent(Intent.ACTION_VIEW, channel.getUri());
intent.putExtra(TUNE_PARAMS_RECOMMENDATION_TYPE, mRecommendationType);
+ intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
final PendingIntent notificationIntent = PendingIntent.getActivity(this, 0, intent, 0);
// This callback will run on the main thread.