mirror of
https://github.com/ente-io/ente.git
synced 2025-08-07 07:03:35 +00:00
[mob][auth] Lockscreen fixes
This commit is contained in:
parent
10e19ffae2
commit
a14a8b0cfb
@ -103,8 +103,10 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
|
||||
AppLock.of(context)!.setEnabled(!appLock);
|
||||
await _configuration.setSystemLockScreen(!appLock);
|
||||
await _lockscreenSetting.removePinAndPassword();
|
||||
if (appLock == false) {
|
||||
await _lockscreenSetting.setHideAppContent(true);
|
||||
if (PlatformUtil.isMobile()) {
|
||||
if (appLock == false) {
|
||||
await _lockscreenSetting.setHideAppContent(true);
|
||||
}
|
||||
}
|
||||
setState(() {
|
||||
_initializeSettings();
|
||||
@ -168,6 +170,7 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
MenuItemWidget(
|
||||
captionedTextWidget: CaptionedTextWidget(
|
||||
@ -308,10 +311,10 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
|
||||
captionedTextWidget:
|
||||
CaptionedTextWidget(
|
||||
title:
|
||||
context.l10n.deviceLock,
|
||||
context.l10n.hideContent,
|
||||
),
|
||||
alignCaptionedTextToLeft: true,
|
||||
isTopBorderRadiusRemoved: true,
|
||||
singleBorderRadius: 8,
|
||||
menuItemColor:
|
||||
colorTheme.fillFaint,
|
||||
trailingWidget:
|
||||
|
Loading…
x
Reference in New Issue
Block a user