Fix small bug when changing authentication method in settings
This commit is contained in:
parent
d708f08f02
commit
fc071982c1
1 changed files with 2 additions and 2 deletions
|
@ -106,8 +106,8 @@ public class SettingsActivity extends BaseActivity
|
||||||
OpenPgpKeyPreference pgpKey;
|
OpenPgpKeyPreference pgpKey;
|
||||||
|
|
||||||
public void updateAuthPassword(String newAuth) {
|
public void updateAuthPassword(String newAuth) {
|
||||||
PasswordHashPreference pwPref = (PasswordHashPreference) catSecurity.findPreference(getString(R.string.settings_key_auth_password));
|
PasswordHashPreference pwPref = (PasswordHashPreference) catSecurity.findPreference(getString(R.string.settings_key_auth_password_hash));
|
||||||
PasswordHashPreference pinPref = (PasswordHashPreference) catSecurity.findPreference(getString(R.string.settings_key_auth_pin));
|
PasswordHashPreference pinPref = (PasswordHashPreference) catSecurity.findPreference(getString(R.string.settings_key_auth_pin_hash));
|
||||||
|
|
||||||
if (pwPref != null)
|
if (pwPref != null)
|
||||||
catSecurity.removePreference(pwPref);
|
catSecurity.removePreference(pwPref);
|
||||||
|
|
Loading…
Reference in a new issue