是什么bug使Android N不强制要求使用FLAG_ACTIVITY_NEW_TASK?

Android P Behavior Changes看到以下改动

FLAG_ACTIVITY_NEW_TASK requirement is now enforced
With Android P, you cannot start an activity from a non-activity context unless you pass the intent flag FLAG_ACTIVITY_NEW_TASK. If you attempt to start an activity without passing this flag, the activity does not start, and the system prints a message to the log.

Note: The flag requirement has always been the intended behavior, and was enforced before Android N. A bug in Android N temporarily kept the flag requirement from being enforced.

我想问一下,是什么bug导致Android N中阻止强制在非Activity Context中启动activity中加FLAG_ACTIVITY_NEW_TASK?

似乎目前只找到修改源,知道bug id,但是不知道如何由此找出详细的bug。

再追加:疑似问题链接,但是我查看时访问被拒绝。

阅读 2.6k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题