[mob][photos] Refactor

This commit is contained in:
ashilkn 2024-10-16 16:00:23 +05:30
parent deef7ac290
commit c62a3258ad

View File

@ -35,10 +35,10 @@ class LockScreenSettings {
/// Workaround to check if "lateinit property activity has not been
/// initialized" PlatformException goes away.
await Future.delayed(const Duration(milliseconds: 500));
///Workaround for privacyScreen not working when app is killed and opened.
await setHideAppContent(getShouldHideAppContent());
await Future.delayed(const Duration(milliseconds: 500), () {
///Workaround for privacyScreen not working when app is killed and opened.
setHideAppContent(getShouldHideAppContent());
});
}
Future<void> setHideAppContent(bool hideContent) async {