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;
public void updateAuthPassword(String newAuth) {
PasswordHashPreference pwPref = (PasswordHashPreference) catSecurity.findPreference(getString(R.string.settings_key_auth_password));
PasswordHashPreference pinPref = (PasswordHashPreference) catSecurity.findPreference(getString(R.string.settings_key_auth_pin));
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_hash));
if (pwPref != null)
catSecurity.removePreference(pwPref);