Merge "Update Javadoc of setLockTaskEnabled to reflect known issue" into pi-dev

am: fdef00a5ae

Change-Id: Ia3a12099b9c87d5fc655a4f0b4afb7b96da674af
This commit is contained in:
Benjamin Franz
2018-04-09 06:53:42 -07:00
committed by android-build-merger

View File

@@ -1139,7 +1139,8 @@ public class ActivityOptions {
* {@link android.app.admin.DevicePolicyManager} can run in LockTask mode. Therefore, if
* {@link android.app.admin.DevicePolicyManager#isLockTaskPermitted(String)} returns
* {@code false} for the package of the target activity, a {@link SecurityException} will be
* thrown during {@link Context#startActivity(Intent, Bundle)}.
* thrown during {@link Context#startActivity(Intent, Bundle)}. This method doesn't affect
* activities that are already running — relaunch the activity to run in lock task mode.
*
* Defaults to {@code false} if not set.
*