mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-19 19:28:26 +00:00
Fixed lock screen appears upon app start when there is no user setup yet.
This commit is contained in:
parent
e294199ea3
commit
85bac9fc46
@ -38,7 +38,9 @@ public abstract class PassphraseRequiredActionBarActivity extends BaseActionBarA
|
||||
Log.i(TAG, "onCreate(" + savedInstanceState + ")");
|
||||
onPreCreate();
|
||||
|
||||
final boolean locked = KeyCachingService.isLocked(this);
|
||||
final boolean locked = KeyCachingService.isLocked(this) &&
|
||||
TextSecurePreferences.isScreenLockEnabled(this) &&
|
||||
TextSecurePreferences.getLocalNumber(this) != null;
|
||||
routeApplicationState(locked);
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
|
Loading…
x
Reference in New Issue
Block a user