Merge "Use StartActivityForResult to launch the intent."
This commit is contained in:
committed by
Android (Google) Code Review
commit
296e5e3ee6
@@ -39,7 +39,11 @@ public class HelpTrampoline extends Activity {
|
|||||||
|
|
||||||
final Intent intent = HelpUtils.getHelpIntent(this, value, null);
|
final Intent intent = HelpUtils.getHelpIntent(this, value, null);
|
||||||
if (intent != 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) {
|
} catch (Resources.NotFoundException | ActivityNotFoundException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user