mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-27 07:24:13 +01:00
Set pure black lock screen background
This commit is contained in:
parent
cddf74d543
commit
92f717595e
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue