Handle renamed APIs
Bug: 10461761 Change-Id: If63c3801663b347a4643e44d5bd3bab4e3049578
This commit is contained in:
@@ -380,7 +380,7 @@ public class TrustedCredentialsSettings extends Fragment {
|
||||
removeButton.setText(certHolder.mTab.getButtonLabel(certHolder));
|
||||
removeButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override public void onClick(View v) {
|
||||
if (mUserManager.hasRestrictionsPin() && !mChallengeSucceeded) {
|
||||
if (mUserManager.hasRestrictionsChallenge() && !mChallengeSucceeded) {
|
||||
ensurePin();
|
||||
return;
|
||||
}
|
||||
@@ -426,9 +426,9 @@ public class TrustedCredentialsSettings extends Fragment {
|
||||
if (!mChallengeSucceeded) {
|
||||
final UserManager um = UserManager.get(getActivity());
|
||||
if (!mChallengeRequested) {
|
||||
if (um.hasRestrictionsPin()) {
|
||||
if (um.hasRestrictionsChallenge()) {
|
||||
Intent requestPin =
|
||||
new Intent(Intent.ACTION_RESTRICTIONS_PIN_CHALLENGE);
|
||||
new Intent(Intent.ACTION_RESTRICTIONS_CHALLENGE);
|
||||
startActivityForResult(requestPin, REQUEST_PIN_CHALLENGE);
|
||||
mChallengeRequested = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user