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

@@ -16,6 +16,8 @@
package com.android.settings.enterprise;
import android.content.Context;
import java.util.Date;
public interface EnterprisePrivacyFeatureProvider {
@@ -131,7 +133,7 @@ public interface EnterprisePrivacyFeatureProvider {
* Launches the Device Owner or Profile Owner's activity that displays the "Your work policy
* info" page. Returns {@code true} if the activity has indeed been launched.
*/
boolean showWorkPolicyInfo();
boolean showWorkPolicyInfo(Context activityContext);
/**
* Launches the parental controls settings page. Returns {@code true} if the activity has