From 414ab76fe3cebce39dd49317b4e368a16cca0847 Mon Sep 17 00:00:00 2001 From: Jiehua Dai Date: Thu, 4 Mar 2010 13:37:58 +0100 Subject: [PATCH] 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. --- src/com/android/settings/ApnEditor.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/ApnEditor.java b/src/com/android/settings/ApnEditor.java index 62856d119e7..e097854ee92 100644 --- a/src/com/android/settings/ApnEditor.java +++ b/src/com/android/settings/ApnEditor.java @@ -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, ""))); + } } } }