update pending intent start mode

Currently it is set as setPendingIntentBackgroundActivityStartMode for launch Satellite ESOS questionnaire but it is not working form AP3A
application team requested update it to setPendingIntentCreatorBackgroundActivityStartMode

Bug: 355303309
Flag: EXEMPT bugfix
Test: manually lunch ESOS questionnaire using emergency call in OOS state
      https://b.corp.google.com/issues/355303309#comment17
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:18ea76ce5ce2e28b7cdb0a7eaa08db35719298ca)
Merged-In: I552ee1778fe7b324118e61ea465a9c46f4528468
Change-Id: I552ee1778fe7b324118e61ea465a9c46f4528468
This commit is contained in:
Hakjun Choi 2024-07-29 21:31:41 +00:00 committed by Android Build Coastguard Worker
parent 727ee7f903
commit 80fd1d030a

View file

@ -705,7 +705,7 @@ public class SatelliteSOSMessageRecommender extends Handler {
intent.addFlags(FLAG_ACTIVITY_CLEAR_TOP);
}
Bundle activityOptions = ActivityOptions.makeBasic()
.setPendingIntentBackgroundActivityStartMode(
.setPendingIntentCreatorBackgroundActivityStartMode(
ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED)
.toBundle();
intent.setComponent(new ComponentName(packageName, className));