Merge pull request #4242 from 21pages/fix
disable wakelock when minisized
This commit is contained in:
		
						commit
						37449bf44c
					
				| @ -177,6 +177,17 @@ class _RemotePageState extends State<RemotePage> | ||||
|     if (Platform.isWindows) { | ||||
|       _isWindowBlur = false; | ||||
|     } | ||||
|     if (!Platform.isLinux) { | ||||
|       Wakelock.enable(); | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   @override | ||||
|   void onWindowMinimize() { | ||||
|     super.onWindowMinimize(); | ||||
|     if (!Platform.isLinux) { | ||||
|       Wakelock.disable(); | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   @override | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user