Fixed lock screen appears upon app start when there is no user setup yet.

pull/420/head
Anton Chekulaev 4 years ago
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…
Cancel
Save