Set pure black lock screen background

This commit is contained in:
12aw 2024-02-17 09:29:59 +01:00
parent cddf74d543
commit 92f717595e
2 changed files with 2 additions and 0 deletions

View file

@ -708,6 +708,7 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
protected void onCreate(final Bundle savedInstanceState) {
// Check if lock is set
if (getBooleanPreference("app_lock_enabled", R.bool.app_lock_enabled)) {
EasyLock.setBackgroundColor(getColor(R.color.primary_black));
EasyLock.checkPassword(this);
}
super.onCreate(savedInstanceState);

View file

@ -937,6 +937,7 @@ public class SettingsActivity extends XmppActivity implements OnSharedPreference
if (appLockPreference != null) {
appLockPreference.setOnPreferenceChangeListener((preference, newValue) -> {
if (!getBooleanPreference("app_lock_enabled", R.bool.app_lock_enabled)) {
EasyLock.setBackgroundColor(getColor(R.color.primary_black));
EasyLock.setPassword(this, SettingsActivity.class);
} else {
EasyLock.disablePassword(this, SettingsActivity.class);