mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 19:28:35 +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 + ")");
|
Log.i(TAG, "onCreate(" + savedInstanceState + ")");
|
||||||
onPreCreate();
|
onPreCreate();
|
||||||
|
|
||||||
final boolean locked = KeyCachingService.isLocked(this);
|
final boolean locked = KeyCachingService.isLocked(this) &&
|
||||||
|
TextSecurePreferences.isScreenLockEnabled(this) &&
|
||||||
|
TextSecurePreferences.getLocalNumber(this) != null;
|
||||||
routeApplicationState(locked);
|
routeApplicationState(locked);
|
||||||
|
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user