From c0754b35badaa4fbb47597ece034aa7cb0d2614a Mon Sep 17 00:00:00 2001 From: Mill Chen Date: Thu, 28 Mar 2019 19:14:25 -0700 Subject: [PATCH] Settings unexpectedly open after turning work profile on ConfirmDeviceCredentialActivity doesn't set a taskAffinity, so the default taskAffinity is the package name. That's why Settings unexpectedly open after users turn work profile on. We specified an unique name to taskAffinity to avoid launching Settings activity. Fixes: 129330530 Test: turn work profile off then turn it on, repeat Change-Id: I1f71c3d1bb37a09a6393fae4c01bc9b18cab49a8 --- AndroidManifest.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index c13068fb29c..3027c064641 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1474,6 +1474,7 @@ @@ -1491,6 +1492,7 @@ android:exported="false" android:permission="android.permission.MANAGE_USERS" android:resizeableActivity="false" + android:taskAffinity=".password.ConfirmDeviceCredentialActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar">