Don't start DPC with the FLAG_ACTIVITY_NEW_TASK flag

The flag prevents the DPC screen from showing with the in-app
transition.

Fixes: 198422800
Test: manual
Change-Id: Ie6debb55396eb5ce48a21b1ef52c89612b1c7ffd
This commit is contained in:
arangelov
2021-10-07 19:26:23 +01:00
parent 6bd4441314
commit c5346baaa2
5 changed files with 18 additions and 18 deletions

View File

@@ -45,7 +45,7 @@ public class WorkPolicyInfoPreferenceController extends BasePreferenceController
@Override
public boolean handlePreferenceTreeClick(Preference preference) {
if (TextUtils.equals(getPreferenceKey(), preference.getKey())) {
mEnterpriseProvider.showWorkPolicyInfo();
mEnterpriseProvider.showWorkPolicyInfo(preference.getContext());
return true;
}
return false;