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

@@ -80,7 +80,7 @@ public class WorkPolicyInfoPreferenceControllerTest {
final Preference pref = new Preference(mContext);
assertThat(controller.handlePreferenceTreeClick(pref)).isFalse();
verify(mEnterpriseProvider, never()).showWorkPolicyInfo();
verify(mEnterpriseProvider, never()).showWorkPolicyInfo(mContext);
}
@Test
@@ -92,6 +92,6 @@ public class WorkPolicyInfoPreferenceControllerTest {
final Preference pref = new Preference(mContext);
pref.setKey(controller.getPreferenceKey());
assertThat(controller.handlePreferenceTreeClick(pref)).isTrue();
verify(mEnterpriseProvider).showWorkPolicyInfo();
verify(mEnterpriseProvider).showWorkPolicyInfo(mContext);
}
}