mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-25 14:37:31 +00:00
recover pn
This commit is contained in:
parent
88ae3a9d93
commit
59ae46b300
@ -71,7 +71,7 @@ public class KeyCachingService extends Service {
|
|||||||
|
|
||||||
// AC: This is a temporal drop off replacement for the refactoring time being.
|
// 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).
|
// 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)}
|
* A temporal utility method to quickly call {@link KeyCachingService#setMasterSecret(Object)}
|
||||||
|
@ -499,7 +499,7 @@ object TextSecurePreferences {
|
|||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun isPasswordDisabled(context: Context): Boolean {
|
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) {
|
fun setPasswordDisabled(context: Context, disabled: Boolean) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user