Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28eab080 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Disable clear credential option when disallowed by admin.

Bug: 27119114
Change-Id: I0f60880b125149cd1a9aa5f4e9a5340f49042367
parent 7f2a0136
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -513,7 +513,7 @@ public class SecuritySettings extends SettingsPreferenceFragment
                    Settings.System.TEXT_SHOW_PASSWORD, 1) != 0);
        }

        if (mResetCredentials != null) {
        if (mResetCredentials != null && !mResetCredentials.isDisabledByAdmin()) {
            mResetCredentials.setEnabled(!mKeyStore.isEmpty());
        }
    }