Force to unlock work challenge before reply inline notification

Bug: 28036566
Change-Id: Ida63ce5003b7e3ec79e1575815d70d1350ffed2d
This commit is contained in:
Ricky Wai
2016-04-12 11:56:50 +01:00
parent cf87fd5bed
commit 9b753da2b7
3 changed files with 15 additions and 3 deletions

View File

@@ -186,7 +186,10 @@ public class RedactionInterstitial extends SettingsActivity {
private void updateRemoteInputCheckboxVisibility() {
boolean visible = mRadioGroup.getCheckedRadioButtonId() == R.id.show_all;
mRemoteInputCheckbox.setVisibility(visible ? View.VISIBLE : View.INVISIBLE);
boolean isManagedProfile = Utils.isManagedProfile(UserManager.get(getPrefContext()),
mUserId);
mRemoteInputCheckbox
.setVisibility((visible && !isManagedProfile) ? View.VISIBLE : View.INVISIBLE);
}
}
}