mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 19:57:43 +00:00
Fixed lock screen appears upon app start when there is no user setup yet.
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user