Skip to content
Commit a89729a2 authored by Louis Chang's avatar Louis Chang
Browse files

Examining if started activity violates lock task mode earlier

The lock task mode violation was used to check on a given task,
so a new task must be created before knowing whether the activity
can be started in lock task mode. If the activity shouldn't be
started, the activity and the task will be removed then.

Instead, this CL allows the lock task mode violation check to be
perform on the activity which is going to be the root activity
of the task which hasn't be created yet, in order to reduce
unnecessary costs if the activity shouldn't be started.

Bug: 171946327
Test: atest LockTaskControllerTest

Change-Id: Ic79368e5197742c34fdde61781d4a0b048540736
parent 7af35b48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment