We should show custom title for suspend app dialog
BUG: 77523074 Test: Suspend an app, observe the new title. Test: m -j RunSettingsRoboTest Change-Id: Ide0329422e68b5ed6418365f2d0b0e0d11f0dec7
This commit is contained in:
@@ -128,6 +128,10 @@ public class ActionDisabledByAdminDialogHelperTest {
|
||||
assertEquals(Shadows.shadowOf(textView).innerText(),
|
||||
mActivity.getString(R.string.disabled_by_policy_title_turn_off_backups));
|
||||
|
||||
mHelper.setAdminSupportTitle(view, DevicePolicyManager.POLICY_SUSPEND_PACKAGES);
|
||||
assertEquals(Shadows.shadowOf(textView).innerText(),
|
||||
mActivity.getString(R.string.disabled_by_policy_title_suspend_packages));
|
||||
|
||||
mHelper.setAdminSupportTitle(view, "another restriction");
|
||||
assertEquals(Shadows.shadowOf(textView).innerText(),
|
||||
mActivity.getString(R.string.disabled_by_policy_title));
|
||||
|
Reference in New Issue
Block a user