OSDN Git Service

Disallow starting activities without new task from non-activity context.
authorBryce Lee <brycelee@google.com>
Tue, 2 May 2017 23:58:22 +0000 (16:58 -0700)
committerBryce Lee <brycelee@google.com>
Wed, 3 May 2017 20:02:26 +0000 (13:02 -0700)
commit8b49a5c0aa18f70bc59b972e888d5ad455e4d7ca
tree52002ecae4883d5f1ed24298cfd7673c36979dd6
parent3eafb6e2c6e6239386af496e1e90a4435f0965df
Disallow starting activities without new task from non-activity context.

A change to the conditions to allow such behavior when a task id was
specified now allows for all non-activity contexts to start activities
as long as no options bundle is specified.

This changelist corrects the condition.

Change-Id: Ifaff4fc6d875ba74ec532b3e3ce91c6aa3ca3362
Fixes: 32625589
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.StartActivityTests
core/java/android/app/ContextImpl.java