From d452bd5fe7729c71db6c612a3e9365e0633542bf Mon Sep 17 00:00:00 2001 From: Badhri Jagan Sridharan Date: Wed, 10 May 2017 17:11:24 -0700 Subject: [PATCH] Use StartActivityForResult to launch the intent. Revert back to StartActivity once HelpUtils.getHelpIntent is refactored. More info in b/38230998 Bug: 36604276 Bug: 33090449 Test: Tapping on Analog accessory notification launch the support article in GMH app. Change-Id: If30f7bc627b0a9cf90ceb875665b575e7f69b16d --- src/com/android/settings/HelpTrampoline.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/HelpTrampoline.java b/src/com/android/settings/HelpTrampoline.java index 7eb28a07051..0de15e35aec 100644 --- a/src/com/android/settings/HelpTrampoline.java +++ b/src/com/android/settings/HelpTrampoline.java @@ -39,7 +39,11 @@ public class HelpTrampoline extends Activity { final Intent intent = HelpUtils.getHelpIntent(this, value, null); if (intent != null) { - startActivity(intent); + /* + * TODO: b/38230998. + * Move to startActivity once the HelpUtils.getHelpIntent is refactored + */ + startActivityForResult(intent, 0); } } catch (Resources.NotFoundException | ActivityNotFoundException e) {