diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-03-04 22:12:52 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-03-04 22:12:52 +0000 |
commit | 9e4d63b5f230c46cfa66691ecb196791be9f1539 (patch) | |
tree | ffa44d745f63c55910e9232a894e3fa2c973148e | |
parent | 1fc2be876e972b0563ed43d9e4f94319ce2060ae (diff) | |
parent | 700112962b78e8ee6da11342e0a92aec22f7f44b (diff) | |
download | TvSettings-simpleperf-release.tar.gz |
Snap for 11526323 from 700112962b78e8ee6da11342e0a92aec22f7f44b to simpleperf-releasesimpleperf-release
Change-Id: Id0ebe8dcf967d5dc83a1799aa28b92a5b2b6cfc5
-rw-r--r-- | OWNERS | 4 | ||||
-rw-r--r-- | Settings/src/com/android/tv/settings/suggestions/SuggestionPreference.java | 6 |
2 files changed, 8 insertions, 2 deletions
@@ -1,4 +1,6 @@ devenbhuva@google.com souravbasu@google.com +oindriladawn@google.com +olegk@google.com zhizhiliu@google.com - +gersonrod@google.com
\ No newline at end of file diff --git a/Settings/src/com/android/tv/settings/suggestions/SuggestionPreference.java b/Settings/src/com/android/tv/settings/suggestions/SuggestionPreference.java index d0b4e2a84..aa2e40490 100644 --- a/Settings/src/com/android/tv/settings/suggestions/SuggestionPreference.java +++ b/Settings/src/com/android/tv/settings/suggestions/SuggestionPreference.java @@ -18,6 +18,7 @@ package com.android.tv.settings.suggestions; import static com.android.tv.settings.util.InstrumentationUtils.logEntrySelected; +import android.app.ActivityOptions; import android.app.PendingIntent; import android.app.tvsettings.TvSettingsEnums; import android.content.Context; @@ -88,7 +89,10 @@ public class SuggestionPreference extends Preference { private void launchSuggestion() { try { - mSuggestion.getPendingIntent().send(); + ActivityOptions activityOptions = ActivityOptions.makeBasic(); + activityOptions.setPendingIntentBackgroundActivityStartMode( + ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED); + mSuggestion.getPendingIntent().send(activityOptions.toBundle()); mSuggestionControllerMixin.launchSuggestion(mSuggestion); logEntrySelected(TvSettingsEnums.SUGGESTED_SETTINGS); } catch (PendingIntent.CanceledException e) { |