recover pn

This commit is contained in:
Ryan ZHAO 2021-01-29 17:03:58 +11:00
parent 88ae3a9d93
commit 59ae46b300
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ public class KeyCachingService extends Service {
// AC: This is a temporal drop off replacement for the refactoring time being.
// This field only indicates if the app was unlocked or not (null means locked).
private static Object masterSecret;
private static Object masterSecret = new Object();
/**
* A temporal utility method to quickly call {@link KeyCachingService#setMasterSecret(Object)}

View File

@ -499,7 +499,7 @@ object TextSecurePreferences {
@JvmStatic
fun isPasswordDisabled(context: Context): Boolean {
return getBooleanPreference(context, DISABLE_PASSPHRASE_PREF, false)
return getBooleanPreference(context, DISABLE_PASSPHRASE_PREF, true)
}
fun setPasswordDisabled(context: Context, disabled: Boolean) {