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
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user