[mob][photos] Add delay before calling setHideAppContent in init of LockScreenSettings to check whether 'lateinit property activity has not been initialized' PlatformExecption goes away

This commit is contained in:
ashilkn
2024-10-16 15:47:42 +05:30
parent 7dbc1f9389
commit 182972ce4a

View File

@@ -33,6 +33,10 @@ class LockScreenSettings {
_secureStorage = const FlutterSecureStorage();
_preferences = prefs;
/// 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());
}