mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
fix the issue of hiding UI
This commit is contained in:
@@ -79,7 +79,7 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||||
if (!App.isMobile) {
|
if (!App.isMobile || !appdata.settings['authorizationRequired']) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (state == AppLifecycleState.inactive && hideContentOverlay == null) {
|
if (state == AppLifecycleState.inactive && hideContentOverlay == null) {
|
||||||
@@ -101,7 +101,6 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
|
|||||||
hideContentOverlay = null;
|
hideContentOverlay = null;
|
||||||
}
|
}
|
||||||
if (state == AppLifecycleState.hidden &&
|
if (state == AppLifecycleState.hidden &&
|
||||||
appdata.settings['authorizationRequired'] &&
|
|
||||||
!isAuthPageActive &&
|
!isAuthPageActive &&
|
||||||
!IO.isSelectingFiles) {
|
!IO.isSelectingFiles) {
|
||||||
isAuthPageActive = true;
|
isAuthPageActive = true;
|
||||||
|
Reference in New Issue
Block a user