Merge "DO NOT MERGE Respect the "Make password visible" setting." into jb-dev

This commit is contained in:
George Mount
2012-06-14 16:14:16 -07:00
committed by Android (Google) Code Review

View File

@ -22,7 +22,8 @@ import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Handler;
import android.os.Message;
import android.util.DisplayMetrics;
import android.provider.Settings;
import android.provider.Settings.SettingNotFoundException;
import android.util.EventLog;
import java.util.Locale;
@ -122,6 +123,7 @@ public class WebSettingsClassic extends WebSettings {
private boolean mLoadWithOverviewMode = false;
private boolean mEnableSmoothTransition = false;
private boolean mForceUserScalable = false;
private boolean mPasswordEchoEnabled = true;
// AutoFill Profile data
public static class AutoFillProfile {
@ -295,6 +297,13 @@ public class WebSettingsClassic extends WebSettings {
mAllowUniversalAccessFromFileURLs = true;
mAllowFileAccessFromFileURLs = true;
}
try {
mPasswordEchoEnabled =
Settings.System.getInt(context.getContentResolver(),
Settings.System.TEXT_SHOW_PASSWORD) != 0;
} catch (SettingNotFoundException e) {
mPasswordEchoEnabled = true;
}
}
private static final String ACCEPT_LANG_FOR_US_LOCALE = "en-US";