The password in the APN settings is shown instead of stars

The password is presented as stars in the edit box, also if one
exits and then enters the APN editor the password is stars.

With this patch the APN password is consistently starified.
This commit is contained in:
Jiehua Dai
2010-03-04 13:37:58 +01:00
committed by Johan Redestig
parent 9f78ffb27e
commit 414ab76fe3

View File

@@ -458,7 +458,11 @@ public class ApnEditor extends PreferenceActivity
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
Preference pref = findPreference(key);
if (pref != null) {
pref.setSummary(checkNull(sharedPreferences.getString(key, "")));
if (pref.equals(mPassword)){
pref.setSummary(starify(sharedPreferences.getString(key, "")));
} else {
pref.setSummary(checkNull(sharedPreferences.getString(key, "")));
}
}
}
}