[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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user