From 40a15771d3907c6bb883e8f4829a89db241d15fe Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Sun, 18 Dec 2016 09:41:02 -0500
Subject: [PATCH] Hide passwords by default

Change-Id: I5329a76ea7a93da95fbb4e02a114b0aa5fd368bd
---
 src/com/android/settings/CryptKeeperConfirm.java | 2 +-
 src/com/android/settings/SecuritySettings.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/com/android/settings/CryptKeeperConfirm.java b/src/com/android/settings/CryptKeeperConfirm.java
index 1cc5b6a..4162232 100644
--- a/src/com/android/settings/CryptKeeperConfirm.java
+++ b/src/com/android/settings/CryptKeeperConfirm.java
@@ -129,7 +129,7 @@ public class CryptKeeperConfirm extends InstrumentedFragment {
             }
             int value = Settings.System.getInt(getContext().getContentResolver(),
                                                Settings.System.TEXT_SHOW_PASSWORD,
-                                               1);
+                                               0);
             utils.setVisiblePasswordEnabled(value != 0, UserHandle.USER_SYSTEM);
 
             Intent intent = new Intent(getActivity(), Blank.class);
diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java
index 106eedf..f3c0976 100644
--- a/src/com/android/settings/SecuritySettings.java
+++ b/src/com/android/settings/SecuritySettings.java
@@ -621,7 +621,7 @@ public class SecuritySettings extends SettingsPreferenceFragment
 
         if (mShowPassword != null) {
             mShowPassword.setChecked(Settings.System.getInt(getContentResolver(),
-                    Settings.System.TEXT_SHOW_PASSWORD, 1) != 0);
+                    Settings.System.TEXT_SHOW_PASSWORD, 0) != 0);
         }
 
         if (mResetCredentials != null && !mResetCredentials.isDisabledByAdmin()) {
-- 
2.9.3

