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

This commit is contained in:
Anton Chekulaev 2020-12-15 11:31:09 +11:00
parent e294199ea3
commit 85bac9fc46

View File

@ -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);