Fix small bug when changing authentication method in settings

This commit is contained in:
Jakob Nixdorf 2017-10-05 10:14:09 +02:00
parent d708f08f02
commit fc071982c1
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC

View file

@ -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);