summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiehua Dai <Jiehua.Dai@sonyericsson.com>2010-03-04 13:37:58 +0100
committerJohan Redestig <johan.redestig@sonyericsson.com>2010-03-05 08:30:44 +0100
commit414ab76fe3cebce39dd49317b4e368a16cca0847 (patch)
tree2db31efb3d9a71d2d3a4af12192a27b52d75c4a3
parent9f78ffb27e8f6a9de6a9db1d04887cf1eedfff81 (diff)
downloadpackages_apps_Settings-414ab76fe3cebce39dd49317b4e368a16cca0847.tar.gz
packages_apps_Settings-414ab76fe3cebce39dd49317b4e368a16cca0847.tar.bz2
packages_apps_Settings-414ab76fe3cebce39dd49317b4e368a16cca0847.zip
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.
-rw-r--r--src/com/android/settings/ApnEditor.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/settings/ApnEditor.java b/src/com/android/settings/ApnEditor.java
index 62856d119..e097854ee 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, "")));
+ }
}
}
}